Path: blob/master/arch/unicore32/kernel/init_task.c
10817 views
/*1* linux/arch/unicore32/kernel/init_task.c2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#include <linux/mm.h>12#include <linux/module.h>13#include <linux/fs.h>14#include <linux/sched.h>15#include <linux/init.h>16#include <linux/init_task.h>17#include <linux/mqueue.h>18#include <linux/uaccess.h>1920#include <asm/pgtable.h>2122static struct signal_struct init_signals = INIT_SIGNALS(init_signals);23static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);24/*25* Initial thread structure.26*27* We need to make sure that this is 8192-byte aligned due to the28* way process stacks are handled. This is done by making sure29* the linker maps this in the .text segment right after head.S,30* and making head.S ensure the proper alignment.31*32* The things we do for performance..33*/34union thread_union init_thread_union __init_task_data = {35INIT_THREAD_INFO(init_task) };3637/*38* Initial task structure.39*40* All other task structs will be allocated on slabs in fork.c41*/42struct task_struct init_task = INIT_TASK(init_task);43EXPORT_SYMBOL(init_task);444546