2007-05-10 22:22:34 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,intel.linux}.com)
|
2005-04-16 15:20:36 -07:00
|
|
|
* Licensed under the GPL
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "linux/sched.h"
|
|
|
|
|
#include "linux/init_task.h"
|
2007-10-16 01:26:54 -07:00
|
|
|
#include "linux/fs.h"
|
|
|
|
|
#include "linux/module.h"
|
2005-04-16 15:20:36 -07:00
|
|
|
#include "linux/mqueue.h"
|
|
|
|
|
#include "asm/uaccess.h"
|
|
|
|
|
|
|
|
|
|
static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
|
|
|
|
|
static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
|
|
|
|
|
/*
|
|
|
|
|
* Initial task structure.
|
|
|
|
|
*
|
|
|
|
|
* All other task structs will be allocated on slabs in fork.c
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
struct task_struct init_task = INIT_TASK(init_task);
|
|
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(init_task);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Initial thread structure.
|
|
|
|
|
*
|
2007-05-10 22:22:34 -07:00
|
|
|
* We need to make sure that this is aligned due to the
|
2005-04-16 15:20:36 -07:00
|
|
|
* way process stacks are handled. This is done by having a special
|
|
|
|
|
* "init_task" linker map entry..
|
|
|
|
|
*/
|
|
|
|
|
|
2009-09-20 18:14:13 -04:00
|
|
|
union thread_union init_thread_union __init_task_data =
|
|
|
|
|
{ INIT_THREAD_INFO(init_task) };
|
2007-05-10 22:22:34 -07:00
|
|
|
|
|
|
|
|
union thread_union cpu0_irqstack
|
2010-02-20 01:03:41 +01:00
|
|
|
__attribute__((__section__(".data..init_irqstack"))) =
|
2007-05-10 22:22:34 -07:00
|
|
|
{ INIT_THREAD_INFO(init_task) };
|