init_task.c 937 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /*
  19. * Initial thread structure.
  20. *
  21. * We need to make sure that this is THREAD_SIZE aligned due to the
  22. * way process stacks are handled. This is done by having a special
  23. * "init_task" linker map entry..
  24. */
  25. union thread_union init_thread_union __init_task_data =
  26. { INIT_THREAD_INFO(init_task) };
  27. /*
  28. * Initial task structure.
  29. *
  30. * All other task structs will be allocated on slabs in fork.c
  31. */
  32. struct task_struct init_task = INIT_TASK(init_task);
  33. EXPORT_SYMBOL(init_task);