init_task.c 999 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,intel.linux}.com)
  3. * Licensed under the GPL
  4. */
  5. #include "linux/sched.h"
  6. #include "linux/init_task.h"
  7. #include "linux/fs.h"
  8. #include "linux/module.h"
  9. #include "linux/mqueue.h"
  10. #include "asm/uaccess.h"
  11. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  12. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  13. /*
  14. * Initial task structure.
  15. *
  16. * All other task structs will be allocated on slabs in fork.c
  17. */
  18. struct task_struct init_task = INIT_TASK(init_task);
  19. EXPORT_SYMBOL(init_task);
  20. /*
  21. * Initial thread structure.
  22. *
  23. * We need to make sure that this is aligned due to the
  24. * way process stacks are handled. This is done by having a special
  25. * "init_task" linker map entry..
  26. */
  27. union thread_union init_thread_union __init_task_data =
  28. { INIT_THREAD_INFO(init_task) };
  29. union thread_union cpu0_irqstack
  30. __attribute__((__section__(".data..init_irqstack"))) =
  31. { INIT_THREAD_INFO(init_task) };