thread_schedule() now static.
[pintos-anon] / src / threads / thread.h
index a9b3251249d11f6415065866cda95032f9a67194..c011f709a27bd3e2b56c2a864fef272b42beaf84 100644 (file)
@@ -2,6 +2,7 @@
 #define HEADER_THREAD_H 1
 
 #include <stdint.h>
+#include "debug.h"
 #include "list.h"
 
 #ifdef USERPROG
@@ -20,7 +21,7 @@ struct thread
   {
     enum thread_status status;
     char name[16];
-    uint32_t *stack;
+    uint8_t *stack;
     list_elem rq_elem;
 #ifdef USERPROG
     struct addrspace addrspace;
@@ -35,16 +36,15 @@ void thread_destroy (struct thread *);
 struct thread *thread_current (void);
 
 #ifdef USERPROG
-void thread_execute (const char *filename);
+bool thread_execute (const char *filename);
 #endif
 
 void thread_start (struct thread *);
 void thread_ready (struct thread *);
-void thread_exit (void);
+void thread_exit (void) NO_RETURN;
 
 void thread_yield (void);
 void thread_sleep (void);
-void thread_schedule (void);
 
 void thread_self_test (void);