From e1a79c400a86f2f6a6735480e31f6ee159e76fa2 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Thu, 10 May 2007 22:22:31 -0700 Subject: 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 Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/um/kernel/init_task.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arch/um/kernel/init_task.c') diff --git a/arch/um/kernel/init_task.c b/arch/um/kernel/init_task.c index cda91aa8e70..4506c7f32ba 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); } /* -- cgit v1.2.3