Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
This commit is contained in:
@@ -56,9 +56,11 @@ register struct proc *rc; /* slot of process to clean up */
|
||||
/* Don't clear if already cleared. */
|
||||
if(isemptyp(rc)) return;
|
||||
|
||||
|
||||
/* Remove the process' ability to send and receive messages */
|
||||
clear_endpoint(rc);
|
||||
|
||||
|
||||
/* Turn off any alarm timers at the clock. */
|
||||
reset_timer(&priv(rc)->s_alarm_timer);
|
||||
|
||||
@@ -70,10 +72,10 @@ register struct proc *rc; /* slot of process to clean up */
|
||||
/* Check the table with IRQ hooks to see if hooks should be released. */
|
||||
for (i=0; i < NR_IRQ_HOOKS; i++) {
|
||||
int proc;
|
||||
if (rc->p_endpoint == irq_hooks[i].proc_nr_e) {
|
||||
if (rc->p_endpoint == irq_hooks[i].proc_nr_e) {
|
||||
rm_irq_handler(&irq_hooks[i]); /* remove interrupt handler */
|
||||
irq_hooks[i].proc_nr_e = NONE; /* mark hook as free */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Release the process table slot. If this is a system process, also
|
||||
@@ -83,9 +85,12 @@ register struct proc *rc; /* slot of process to clean up */
|
||||
*/
|
||||
if (priv(rc)->s_flags & SYS_PROC) priv(rc)->s_proc_nr = NONE;
|
||||
|
||||
#if 0
|
||||
/* Clean up virtual memory */
|
||||
if (rc->p_misc_flags & MF_VM)
|
||||
if (rc->p_misc_flags & MF_VM) {
|
||||
vm_map_default(rc);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* USE_EXIT */
|
||||
|
||||
Reference in New Issue
Block a user