init_task.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * arch/score/kernel/init_task.c
  3. *
  4. * Score Processor version.
  5. *
  6. * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
  7. *
  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.
  12. *
  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.
  17. *
  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
  22. */
  23. #include <linux/init_task.h>
  24. #include <linux/mqueue.h>
  25. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  26. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  27. /*
  28. * Initial thread structure.
  29. *
  30. * We need to make sure that this is THREAD_SIZE aligned due to the
  31. * way process stacks are handled. This is done by having a special
  32. * "init_task" linker map entry..
  33. */
  34. union thread_union init_thread_union __init_task_data =
  35. { INIT_THREAD_INFO(init_task) };
  36. /*
  37. * Initial task structure.
  38. *
  39. * All other task structs will be allocated on slabs in fork.c
  40. */
  41. struct task_struct init_task = INIT_TASK(init_task);
  42. EXPORT_SYMBOL(init_task);