Add special event pipes, rework ps2kb process
This commit is contained in:
@ -101,6 +101,7 @@ Proc *proc_spawnkern(void (*ent)(void), char *name) {
|
||||
proc->platformdata.cr3 = hal_vmm_current_cr3();
|
||||
proc->state = PROC_READY;
|
||||
proc->pid = pids++;
|
||||
spinlock_init(&proc->eventpipes_spinlock);
|
||||
|
||||
return proc;
|
||||
}
|
||||
@ -166,6 +167,7 @@ Proc *proc_spawnuser(char *mountpoint, char *path) {
|
||||
proc->platformdata.trapframe.rip = aux.entry;
|
||||
proc->state = PROC_READY;
|
||||
proc->pid = pids++;
|
||||
spinlock_init(&proc->eventpipes_spinlock);
|
||||
|
||||
return proc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user