summaryrefslogtreecommitdiffstats
path: root/userprog/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'userprog/process.h')
-rw-r--r--userprog/process.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/userprog/process.h b/userprog/process.h
index b7bca5d..ccb94cb 100644
--- a/userprog/process.h
+++ b/userprog/process.h
@@ -3,6 +3,8 @@
3 3
4#include "threads/thread.h" 4#include "threads/thread.h"
5 5
6#define STACK_SIZE (1 << 23) /* 8MB maxiumum stack size */
7
6/* In the current implementation, the capacity is fixed to 1024 (PGSIZE/4) */ 8/* In the current implementation, the capacity is fixed to 1024 (PGSIZE/4) */
7struct fd_table { 9struct fd_table {
8 struct file** fds; 10 struct file** fds;
@@ -37,6 +39,7 @@ tid_t process_execute (const char *file_name);
37int process_wait (tid_t); 39int process_wait (tid_t);
38void process_exit (void); 40void process_exit (void);
39void process_activate (void); 41void process_activate (void);
42bool process_grow_stack (void *upage);
40bool process_install_page (void *upage, void *kpage, bool writable); 43bool process_install_page (void *upage, void *kpage, bool writable);
41 44
42int process_open_file(const char* fname); 45int process_open_file(const char* fname);