From abd273ce0a9ae9267f8b0a144ea9b56d8912f9b5 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 19 Jun 2012 23:31:28 +0200 Subject: add dynamic stack growing --- userprog/process.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'userprog/process.h') 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 @@ #include "threads/thread.h" +#define STACK_SIZE (1 << 23) /* 8MB maxiumum stack size */ + /* In the current implementation, the capacity is fixed to 1024 (PGSIZE/4) */ struct fd_table { struct file** fds; @@ -37,6 +39,7 @@ tid_t process_execute (const char *file_name); int process_wait (tid_t); void process_exit (void); void process_activate (void); +bool process_grow_stack (void *upage); bool process_install_page (void *upage, void *kpage, bool writable); int process_open_file(const char* fname); -- cgit v1.2.3