Various fixes and improvements.
- fixed bug that caused IDLE to panic (irq hook inconsistency); - kprintf() now accepts multiple arguments; moved to utility.c; - prepare_shutdown() signals system processes with SIGKSTOP; - phys_fill() renamed to phys_memset(), argument order changed; - kmemset() removed in favor of phys_kmemset(); - kstrncpy() removed in favor of phys_copy(); - katoi, kstrncmp replaced by normal library procedure again; - rm_irq_handler() interface changed (simply pass hook pointer);
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
* m1_p3: PR_IP_PTR (new instruction pointer)
|
||||
*/
|
||||
#include "../system.h"
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
#if USE_EXEC
|
||||
@@ -35,7 +36,7 @@ register message *m_ptr; /* pointer to request message */
|
||||
#endif
|
||||
#endif
|
||||
#if (CHIP == INTEL) /* wipe extra LDT entries */
|
||||
kmemset(&rp->p_ldt[EXTRA_LDT_INDEX], 0,
|
||||
phys_memset(vir2phys(&rp->p_ldt[EXTRA_LDT_INDEX]), 0,
|
||||
(LDT_SIZE - EXTRA_LDT_INDEX) * sizeof(rp->p_ldt[0]));
|
||||
#endif
|
||||
rp->p_reg.pc = (reg_t) m_ptr->PR_IP_PTR; /* set pc */
|
||||
@@ -50,7 +51,7 @@ register message *m_ptr; /* pointer to request message */
|
||||
for (np = rp->p_name; (*np & BYTE) >= ' '; np++) {}
|
||||
*np = 0; /* mark end */
|
||||
} else {
|
||||
kstrncpy(rp->p_name, "<unset>", P_NAME_LEN);
|
||||
strncpy(rp->p_name, "<unset>", P_NAME_LEN);
|
||||
}
|
||||
return(OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user