Forks and COW situations show that we need vm objects rather than vm_files.

This is the first commit towards implementing vm object based paging with
right COW methods.
This commit is contained in:
Bahadir Balban
2008-03-03 22:05:01 +00:00
parent e2e6c89da2
commit 58b833dd7f
11 changed files with 272 additions and 139 deletions

View File

@@ -13,6 +13,8 @@
#include <l4lib/arch/syslib.h>
#include <l4lib/ipcdefs.h>
#include <fcntl.h>
#include <l4/macros.h>
#include INC_GLUE(memory.h)
/*
* Arguments that are too large to fit in message registers are
@@ -30,7 +32,7 @@ static inline int l4_open(const char *pathname, int flags, mode_t mode)
int fd;
// write_mr(L4SYS_ARG0, (unsigned long)pathname);
copy_to_utcb(pathname, strlen(pathname));
copy_to_utcb((void *)pathname, strlen(pathname));
write_mr(L4SYS_ARG1, flags);
write_mr(L4SYS_ARG2, (u32)mode);