init_task.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. struct mm_struct init_mm = INIT_MM(init_mm);
  12. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  13. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  14. EXPORT_SYMBOL(init_mm);
  15. /*
  16. * Initial task structure.
  17. *
  18. * All other task structs will be allocated on slabs in fork.c
  19. */
  20. struct task_struct init_task = INIT_TASK(init_task);
  21. EXPORT_SYMBOL(init_task);
  22. /*
  23. * Initial thread structure.
  24. *
  25. * We need to make sure that this is aligned due to the
  26. * way process stacks are handled. This is done by having a special
  27. * "init_task" linker map entry..
  28. */
  29. union thread_union init_thread_union
  30. __attribute__((__section__(".data.init_task"))) =
  31. { INIT_THREAD_INFO(init_task) };
  32. union thread_union cpu0_irqstack
  33. __attribute__((__section__(".data.init_irqstack"))) =
  34. { INIT_THREAD_INFO(init_task) };