init_task.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * arch/s390/kernel/init_task.c
  3. *
  4. * S390 version
  5. *
  6. * Derived from "arch/i386/kernel/init_task.c"
  7. */
  8. #include <linux/mm.h>
  9. #include <linux/fs.h>
  10. #include <linux/module.h>
  11. #include <linux/sched.h>
  12. #include <linux/init_task.h>
  13. #include <linux/mqueue.h>
  14. #include <asm/uaccess.h>
  15. #include <asm/pgtable.h>
  16. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  17. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  18. struct mm_struct init_mm = INIT_MM(init_mm);
  19. EXPORT_SYMBOL(init_mm);
  20. /*
  21. * Initial thread structure.
  22. *
  23. * We need to make sure that this is THREAD_SIZE 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
  28. __attribute__((__section__(".data.init_task"))) =
  29. { INIT_THREAD_INFO(init_task) };
  30. /*
  31. * Initial task structure.
  32. *
  33. * All other task structs will be allocated on slabs in fork.c
  34. */
  35. struct task_struct init_task = INIT_TASK(init_task);
  36. EXPORT_SYMBOL(init_task);