2 * arch/score/kernel/init_task.c
4 * Score Processor version.
6 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see the file COPYING, or write
20 * to the Free Software Foundation, Inc.,
21 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #include <linux/init_task.h>
25 #include <linux/mqueue.h>
27 static struct signal_struct init_signals
= INIT_SIGNALS(init_signals
);
28 static struct sighand_struct init_sighand
= INIT_SIGHAND(init_sighand
);
31 * Initial thread structure.
33 * We need to make sure that this is THREAD_SIZE aligned due to the
34 * way process stacks are handled. This is done by having a special
35 * "init_task" linker map entry..
37 union thread_union init_thread_union
38 __attribute__((__section__(".data.init_task"))) =
39 { INIT_THREAD_INFO(init_task
) };
42 * Initial task structure.
44 * All other task structs will be allocated on slabs in fork.c
46 struct task_struct init_task
= INIT_TASK(init_task
);
47 EXPORT_SYMBOL(init_task
);