summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/init_task.c
diff options
context:
space:
mode:
authorRalf Bächle <ralf@linux-mips.org>2003-06-22 22:07:17 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-22 22:07:17 -0700
commitf6d64aeef94909c98a054590af61906d2ce5acbf (patch)
tree38b4b00a94874a5da38eae4c81ab14bcf3b237e6 /arch/mips/kernel/init_task.c
parent2e7f53ec14475d56559bcdd07acfb737b7bff1e9 (diff)
[PATCH] MIPS merge, generic mips bits.
This contains all the generic 32-bit MIPS code, so all arch/mips/ and include/asm-mips/ stuff.
Diffstat (limited to 'arch/mips/kernel/init_task.c')
-rw-r--r--arch/mips/kernel/init_task.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/mips/kernel/init_task.c b/arch/mips/kernel/init_task.c
index 0cba234e7181..a3540eaa199d 100644
--- a/arch/mips/kernel/init_task.c
+++ b/arch/mips/kernel/init_task.c
@@ -1,17 +1,19 @@
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/init_task.h>
+#include <linux/fs.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
static struct fs_struct init_fs = INIT_FS;
static struct files_struct init_files = INIT_FILES;
-static struct signal_struct init_signals = INIT_SIGNALS;
+static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
+static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
struct mm_struct init_mm = INIT_MM(init_mm);
/*
- * Initial task structure.
+ * Initial thread structure.
*
* We need to make sure that this is 8192-byte aligned due to the
* way process stacks are handled. This is done by making sure
@@ -20,6 +22,13 @@ struct mm_struct init_mm = INIT_MM(init_mm);
*
* The things we do for performance..
*/
-union task_union init_task_union
- __attribute__((__section__(".text"))) =
- { INIT_TASK(init_task_union.task) };
+union thread_union init_thread_union
+ __attribute__((__section__(".data.init_task"))) =
+ { INIT_THREAD_INFO(init_task) };
+
+/*
+ * Initial task structure.
+ *
+ * All other task structs will be allocated on slabs in fork.c
+ */
+struct task_struct init_task = INIT_TASK(init_task);