ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / sparc64 / kernel / init_task.c
1 #include <linux/mm.h>
2 #include <linux/module.h>
3 #include <linux/sched.h>
4 #include <linux/init_task.h>
5
6 #include <asm/pgtable.h>
7 #include <asm/uaccess.h>
8 #include <asm/processor.h>
9
10 static struct fs_struct init_fs = INIT_FS;
11 static struct files_struct init_files = INIT_FILES;
12 static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
13 static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
14 struct mm_struct init_mm = INIT_MM(init_mm);
15
16 EXPORT_SYMBOL(init_mm);
17
18 /* .text section in head.S is aligned at 2 page boundary and this gets linked
19  * right after that so that the init_thread_union is aligned properly as well.
20  * We really don't need this special alignment like the Intel does, but
21  * I do it anyways for completeness.
22  */
23 __asm__ (".text");
24 union thread_union init_thread_union = { INIT_THREAD_INFO(init_task) };
25
26 /*
27  * Initial task structure.
28  *
29  * All other task structs will be allocated on slabs in fork.c
30  */
31 EXPORT_SYMBOL(init_task);
32
33 __asm__(".data");
34 struct task_struct init_task = INIT_TASK(init_task);