1 #include <linux/mm.h>
2 #include <linux/sched.h>
3 #include <linux/init.h>
4 #include <linux/config.h>
5 
6 #include <asm/uaccess.h>
7 #include <asm/pgtable.h>
8 #include <asm/desc.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;
13 struct mm_struct init_mm = INIT_MM(init_mm);
14 
15 /*
16  * Initial task structure.
17  *
18  * We need to make sure that this is 8192-byte aligned due to the
19  * way process stacks are handled. This is done by having a special
20  * "init_task" linker map entry..
21  */
22 union task_union init_task_union
23 	__attribute__((__section__(".data.init_task"))) =
24 		{ INIT_TASK(init_task_union.task) };
25 
26 /*
27  * per-CPU TSS segments. Threads are completely 'soft' on Linux,
28  * no more per-task TSS's. The TSS size is kept cacheline-aligned
29  * so they are allowed to end up in the .data.cacheline_aligned
30  * section. Since TSS's are completely CPU-local, we want them
31  * on exact cacheline boundaries, to eliminate cacheline ping-pong.
32  */
33 struct tss_struct init_tss[NR_CPUS] __cacheline_aligned;
34 
35 
36 #define ALIGN_TO_4K __attribute__((section(".data.init_task")))
37 
38 pgd_t boot_vmalloc_pgt[512]  ALIGN_TO_4K;
39