aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/init_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/init_task.c')
-rw-r--r--arch/um/kernel/init_task.c31
1 files changed, 11 insertions, 20 deletions
diff --git a/arch/um/kernel/init_task.c b/arch/um/kernel/init_task.c
index 8cde431348cc..d4f1d1ab252b 100644
--- a/arch/um/kernel/init_task.c
+++ b/arch/um/kernel/init_task.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com) 2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,intel.linux}.com)
3 * Licensed under the GPL 3 * Licensed under the GPL
4 */ 4 */
5 5
@@ -10,7 +10,6 @@
10#include "linux/mqueue.h" 10#include "linux/mqueue.h"
11#include "asm/uaccess.h" 11#include "asm/uaccess.h"
12#include "asm/pgtable.h" 12#include "asm/pgtable.h"
13#include "user_util.h"
14#include "mem_user.h" 13#include "mem_user.h"
15#include "os.h" 14#include "os.h"
16 15
@@ -34,28 +33,20 @@ EXPORT_SYMBOL(init_task);
34/* 33/*
35 * Initial thread structure. 34 * Initial thread structure.
36 * 35 *
37 * We need to make sure that this is 16384-byte aligned due to the 36 * We need to make sure that this is aligned due to the
38 * way process stacks are handled. This is done by having a special 37 * way process stacks are handled. This is done by having a special
39 * "init_task" linker map entry.. 38 * "init_task" linker map entry..
40 */ 39 */
41 40
42union thread_union init_thread_union 41union thread_union init_thread_union
43__attribute__((__section__(".data.init_task"))) = 42 __attribute__((__section__(".data.init_task"))) =
44{ INIT_THREAD_INFO(init_task) }; 43 { INIT_THREAD_INFO(init_task) };
44
45union thread_union cpu0_irqstack
46 __attribute__((__section__(".data.init_irqstack"))) =
47 { INIT_THREAD_INFO(init_task) };
45 48
46void unprotect_stack(unsigned long stack) 49void unprotect_stack(unsigned long stack)
47{ 50{
48 os_protect_memory((void *) stack, (1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE, 51 os_protect_memory((void *) stack, THREAD_SIZE, 1, 1, 0);
49 1, 1, 0);
50} 52}
51
52/*
53 * Overrides for Emacs so that we follow Linus's tabbing style.
54 * Emacs will notice this stuff at the end of the file and automatically
55 * adjust the settings for this buffer only. This must remain at the end
56 * of the file.
57 * ---------------------------------------------------------------------------
58 * Local variables:
59 * c-file-style: "linux"
60 * End:
61 */