The patch titled uml: use UM_THREAD_SIZE in userspace code has been added to the -mm tree. Its filename is uml-use-um_thread_size-in-userspace-code.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: uml: use UM_THREAD_SIZE in userspace code From: Jeff Dike <jdike@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxx> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/um/kernel/init_task.c | 3 +-- arch/um/os-Linux/skas/process.c | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff -puN arch/um/kernel/init_task.c~uml-use-um_thread_size-in-userspace-code arch/um/kernel/init_task.c --- a/arch/um/kernel/init_task.c~uml-use-um_thread_size-in-userspace-code +++ a/arch/um/kernel/init_task.c @@ -44,8 +44,7 @@ __attribute__((__section__(".data.init_t 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); } /* diff -puN arch/um/os-Linux/skas/process.c~uml-use-um_thread_size-in-userspace-code arch/um/os-Linux/skas/process.c --- a/arch/um/os-Linux/skas/process.c~uml-use-um_thread_size-in-userspace-code +++ a/arch/um/os-Linux/skas/process.c @@ -490,8 +490,8 @@ void map_stub_pages(int fd, unsigned lon void new_thread(void *stack, jmp_buf *buf, void (*handler)(void)) { (*buf)[0].JB_IP = (unsigned long) handler; - (*buf)[0].JB_SP = (unsigned long) stack + - (PAGE_SIZE << UML_CONFIG_KERNEL_STACK_ORDER) - sizeof(void *); + (*buf)[0].JB_SP = (unsigned long) stack + UM_THREAD_SIZE - + sizeof(void *); } #define INIT_JMP_NEW_THREAD 0 @@ -533,8 +533,7 @@ int start_idle_thread(void *stack, jmp_b case INIT_JMP_NEW_THREAD: (*switch_buf)[0].JB_IP = (unsigned long) new_thread_handler; (*switch_buf)[0].JB_SP = (unsigned long) stack + - (PAGE_SIZE << UML_CONFIG_KERNEL_STACK_ORDER) - - sizeof(void *); + UM_THREAD_SIZE - sizeof(void *); break; case INIT_JMP_CALLBACK: (*cb_proc)(cb_arg); _ Patches currently in -mm which might be from jdike@xxxxxxxxxxx are origin.patch uml-remove-task_protections.patch uml-use-um_thread_size-in-userspace-code.patch uml-tidy-irq-code.patch uml-irq-stacks.patch uml-monitor-stack-usage.patch uml-shrink-kernel-stacks.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html