Commit dc0b606e authored by Jeff Dike's avatar Jeff Dike

Fixed a couple of problems with the configurable stack size changes.

parent dd0ee875
...@@ -14,7 +14,7 @@ struct thread_info; ...@@ -14,7 +14,7 @@ struct thread_info;
#include "asm/page.h" #include "asm/page.h"
#define CURRENT_THREAD(dummy) (((unsigned long) &dummy) & \ #define CURRENT_THREAD(dummy) (((unsigned long) &dummy) & \
(PAGE_MASK << CONFIG_KERNEL_SACK_ORDER)) (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER))
#define current ({ int dummy; \ #define current ({ int dummy; \
((struct thread_info *) CURRENT_THREAD(dummy))->task; }) ((struct thread_info *) CURRENT_THREAD(dummy))->task; })
......
...@@ -94,7 +94,7 @@ struct thread_struct { ...@@ -94,7 +94,7 @@ struct thread_struct {
.request = { 0 } \ .request = { 0 } \
} }
#define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE) #define INIT_THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
typedef struct { typedef struct {
unsigned long seg; unsigned long seg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment