diff options
author | Jeff Dike | 2007-05-11 07:22:31 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-05-11 17:29:33 +0200 |
commit | e1a79c400a86f2f6a6735480e31f6ee159e76fa2 (patch) | |
tree | 96cb07fbca43e4f6850559770c16eccb89e9687c /arch/um/kernel | |
parent | uml: remove task_protections (diff) | |
download | kernel-qcow2-linux-e1a79c400a86f2f6a6735480e31f6ee159e76fa2.tar.gz kernel-qcow2-linux-e1a79c400a86f2f6a6735480e31f6ee159e76fa2.tar.xz kernel-qcow2-linux-e1a79c400a86f2f6a6735480e31f6ee159e76fa2.zip |
uml: use UM_THREAD_SIZE in userspace code
Now that we have UM_THREAD_SIZE, we can replace the calculations in
user-space code (an earlier patch took care of the kernel side of the
house).
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/init_task.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/kernel/init_task.c b/arch/um/kernel/init_task.c index cda91aa8e703..4506c7f32bac 100644 --- a/arch/um/kernel/init_task.c +++ b/arch/um/kernel/init_task.c @@ -44,8 +44,7 @@ __attribute__((__section__(".data.init_task"))) = void unprotect_stack(unsigned long stack) { - os_protect_memory((void *) stack, (1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE, - 1, 1, 0); + os_protect_memory((void *) stack, THREAD_SIZE, 1, 1, 0); } /* |