Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 1 | /* |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 2 | * Copyright 2004-2009 Analog Devices Inc. |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 3 | * |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 4 | * Licensed under the GPL-2 or later |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <linux/mm.h> |
| 8 | #include <linux/module.h> |
| 9 | #include <linux/init_task.h> |
| 10 | #include <linux/mqueue.h> |
Bryan Wu | d31c5ab | 2007-08-10 13:00:42 -0700 | [diff] [blame] | 11 | #include <linux/fs.h> |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 12 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 13 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); |
| 14 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 15 | /* |
| 16 | * Initial task structure. |
| 17 | * |
| 18 | * All other task structs will be allocated on slabs in fork.c |
| 19 | */ |
| 20 | struct task_struct init_task = INIT_TASK(init_task); |
| 21 | EXPORT_SYMBOL(init_task); |
| 22 | |
| 23 | /* |
| 24 | * Initial thread structure. |
| 25 | * |
| 26 | * We need to make sure that this is 8192-byte aligned due to the |
| 27 | * way process stacks are handled. This is done by having a special |
| 28 | * "init_task" linker map entry. |
| 29 | */ |
| 30 | union thread_union init_thread_union |
Mike Frysinger | b7627ac | 2008-02-02 15:53:17 +0800 | [diff] [blame] | 31 | __attribute__ ((__section__(".init_task.data"))) = { |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 32 | INIT_THREAD_INFO(init_task)}; |