PM: remove obsolete sys_getkinfo()
This commit is contained in:
parent
84afb336d6
commit
7c62cdaaa7
@ -8,7 +8,6 @@
|
|||||||
EXTERN struct mproc *mp; /* ptr to 'mproc' slot of current process */
|
EXTERN struct mproc *mp; /* ptr to 'mproc' slot of current process */
|
||||||
EXTERN int procs_in_use; /* how many processes are marked as IN_USE */
|
EXTERN int procs_in_use; /* how many processes are marked as IN_USE */
|
||||||
EXTERN char monitor_params[MULTIBOOT_PARAM_BUF_SIZE];
|
EXTERN char monitor_params[MULTIBOOT_PARAM_BUF_SIZE];
|
||||||
EXTERN struct kinfo kinfo; /* kernel information */
|
|
||||||
|
|
||||||
/* Misc.c */
|
/* Misc.c */
|
||||||
extern struct utsname uts_val; /* uname info */
|
extern struct utsname uts_val; /* uname info */
|
||||||
|
@ -213,14 +213,10 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
|
|||||||
for (sig_ptr = noign_sigs; sig_ptr < noign_sigs+sizeof(noign_sigs); sig_ptr++)
|
for (sig_ptr = noign_sigs; sig_ptr < noign_sigs+sizeof(noign_sigs); sig_ptr++)
|
||||||
sigaddset(&noign_sset, *sig_ptr);
|
sigaddset(&noign_sset, *sig_ptr);
|
||||||
|
|
||||||
/* Obtain a copy of the boot monitor parameters and the kernel info struct.
|
/* Obtain a copy of the boot monitor parameters.
|
||||||
* Parse the list of free memory chunks. This list is what the boot monitor
|
|
||||||
* reported, but it must be corrected for the kernel and system processes.
|
|
||||||
*/
|
*/
|
||||||
if ((s=sys_getmonparams(monitor_params, sizeof(monitor_params))) != OK)
|
if ((s=sys_getmonparams(monitor_params, sizeof(monitor_params))) != OK)
|
||||||
panic("get monitor params failed: %d", s);
|
panic("get monitor params failed: %d", s);
|
||||||
if ((s=sys_getkinfo(&kinfo)) != OK)
|
|
||||||
panic("get kernel info failed: %d", s);
|
|
||||||
|
|
||||||
/* Initialize PM's process table. Request a copy of the system image table
|
/* Initialize PM's process table. Request a copy of the system image table
|
||||||
* that is defined at the kernel level to see which slots to fill in.
|
* that is defined at the kernel level to see which slots to fill in.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user