Basic VM and other minor improvements.

Not complete, probably not fully debugged or optimized.
This commit is contained in:
Ben Gras
2008-11-19 12:26:10 +00:00
parent c888305e21
commit c078ec0331
273 changed files with 10814 additions and 4305 deletions

View File

@@ -1,10 +1,11 @@
#include "syslib.h"
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 */
PUBLIC int sys_fork(parent, child, child_endpoint, map_ptr, flags)
endpoint_t parent; /* process doing the fork */
endpoint_t child; /* which proc has been created by the fork */
int *child_endpoint;
struct mem_map *map_ptr;
u32_t flags;
{
/* A process has forked. Tell the kernel. */
@@ -14,6 +15,7 @@ struct mem_map *map_ptr;
m.PR_ENDPT = parent;
m.PR_SLOT = child;
m.PR_MEM_PTR = (char *) map_ptr;
m.PR_FORK_FLAGS = flags;
r = _taskcall(SYSTASK, SYS_FORK, &m);
*child_endpoint = m.PR_ENDPT;
return r;