Changes for restarting disk drivers and new interface between PM and FS.
This commit is contained in:
@@ -3,13 +3,15 @@
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
PUBLIC int devctl(int ctl_req, int proc_nr, int dev_nr, int dev_style)
|
||||
PUBLIC int devctl(int ctl_req, int proc_nr, int dev_nr, int dev_style,
|
||||
int force)
|
||||
{
|
||||
message m;
|
||||
m.m4_l1 = ctl_req;
|
||||
m.m4_l2 = proc_nr;
|
||||
m.m4_l3 = dev_nr;
|
||||
m.m4_l4 = dev_style;
|
||||
m.m4_l5 = force;
|
||||
if (_syscall(FS, DEVCTL, &m) < 0) return(-1);
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#include "syslib.h"
|
||||
|
||||
PUBLIC int sys_fork(parent, child, child_endpoint)
|
||||
PUBLIC int sys_fork(parent, child, child_endpoint, map_ptr)
|
||||
int parent; /* process doing the fork */
|
||||
int child; /* which proc has been created by the fork */
|
||||
int *child_endpoint;
|
||||
struct mem_map *map_ptr;
|
||||
{
|
||||
/* A process has forked. Tell the kernel. */
|
||||
|
||||
@@ -12,6 +13,7 @@ int *child_endpoint;
|
||||
|
||||
m.PR_ENDPT = parent;
|
||||
m.PR_SLOT = child;
|
||||
m.PR_MEM_PTR = map_ptr;
|
||||
r = _taskcall(SYSTASK, SYS_FORK, &m);
|
||||
*child_endpoint = m.PR_ENDPT;
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user