1 #include <linux/mm.h>
2 #include <linux/sched.h>
3 #include <linux/init.h>
4 
5 #include <asm/uaccess.h>
6 #include <asm/pgtable.h>
7 #include <asm/pgalloc.h>
8 
9 static struct fs_struct init_fs = INIT_FS;
10 static struct files_struct init_files = INIT_FILES;
11 static struct signal_struct init_signals = INIT_SIGNALS;
12 struct mm_struct init_mm = INIT_MM(init_mm);
13 
14 /*
15  * Initial task structure.
16  *
17  * We need to make sure that this is 16384-byte aligned due to the
18  * way process stacks are handled. This is done by having a special
19  * "init_task" linker map entry..
20  */
21 unsigned char interrupt_stack[ISTACK_SIZE] __attribute__ ((section("init_istack"), aligned(4096)));
22 union task_union init_task_union
23 	__attribute__((section("init_task"), aligned(4096))) = { INIT_TASK(init_task_union.task) };
24 
25 pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__ ((aligned(4096))) = { {0}, };
26 #ifdef __LP64__
27 unsigned long pmd0[PTRS_PER_PMD] __attribute__ ((aligned(4096))) = { 0, };
28 #endif
29 unsigned long pg0[PT_INITIAL * PTRS_PER_PTE] __attribute__ ((aligned(4096))) = { 0, };
30