2 #include <linux/sched.h>
4 #include <asm/uaccess.h>
5 #include <asm/pgtable.h>
9 static struct vm_area_struct init_mmap
= INIT_MMAP
;
10 static struct fs_struct init_fs
= INIT_FS
;
11 static struct file
* init_fd_array
[NR_OPEN
] = { NULL
, };
12 static struct files_struct init_files
= INIT_FILES
;
13 static struct signal_struct init_signals
= INIT_SIGNALS
;
14 struct mm_struct init_mm
= INIT_MM(init_mm
);
17 * Initial task structure.
19 * We need to make sure that this is 8192-byte aligned due to the
20 * way process stacks are handled. This is done by having a special
21 * "init_task" linker map entry..
23 union task_union init_task_union
24 __attribute__((__section__(".data.init_task"))) =
25 { INIT_TASK(init_task_union
.task
) };
28 * per-CPU TSS segments. Threads are completely 'soft' on Linux,
29 * no more per-task TSS's. The TSS size is kept cacheline-aligned
30 * so they are allowed to end up in the .data.cacheline_aligned
31 * section. Since TSS's are completely CPU-local, we want them
32 * on exact cacheline boundaries, to eliminate cacheline ping-pong.
34 struct hard_thread_struct init_tss
[NR_CPUS
] __cacheline_aligned
=
35 { [0 ... NR_CPUS
-1] = INIT_TSS
};