diff options
| author | manuel <manuel@mausz.at> | 2012-06-21 16:47:23 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-06-21 16:47:23 +0200 |
| commit | e11b2ef0c606ab516a4344aeea1dbba22cb1fe5d (patch) | |
| tree | b4973f4dca916113c82a4a172f6f729d41cf4430 /userprog/process.h | |
| parent | e9e69def589375c3d0e51b532268b27d3d403bbf (diff) | |
| download | progos-e11b2ef0c606ab516a4344aeea1dbba22cb1fe5d.tar.gz progos-e11b2ef0c606ab516a4344aeea1dbba22cb1fe5d.tar.bz2 progos-e11b2ef0c606ab516a4344aeea1dbba22cb1fe5d.zip | |
initial implementation of memory mapped files
Diffstat (limited to 'userprog/process.h')
| -rw-r--r-- | userprog/process.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/userprog/process.h b/userprog/process.h index 5fcd80e..bac9a60 100644 --- a/userprog/process.h +++ b/userprog/process.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define USERPROG_PROCESS_H | 2 | #define USERPROG_PROCESS_H |
| 3 | 3 | ||
| 4 | #include "threads/thread.h" | 4 | #include "threads/thread.h" |
| 5 | #include "vm/mmap.h" | ||
| 5 | 6 | ||
| 6 | #define STACK_SIZE (1 << 23) /* 8MB maximum stack size */ | 7 | #define STACK_SIZE (1 << 23) /* 8MB maximum stack size */ |
| 7 | 8 | ||
| @@ -27,6 +28,7 @@ struct process { | |||
| 27 | /* files */ | 28 | /* files */ |
| 28 | struct file *executable; /* Loaded executable, if any. */ | 29 | struct file *executable; /* Loaded executable, if any. */ |
| 29 | struct fd_table fd_table; /* File descriptor table */ | 30 | struct fd_table fd_table; /* File descriptor table */ |
| 31 | struct mmap_table mmap_table; /* Memory mapped files table */ | ||
| 30 | 32 | ||
| 31 | /* Owned by syscall.c */ | 33 | /* Owned by syscall.c */ |
| 32 | void* syscall_buffer; | 34 | void* syscall_buffer; |
