init_task.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/module.h>
  10. #include <linux/sched.h>
  11. #include <linux/init_task.h>
  12. #include <linux/mqueue.h>
  13. #include <asm/uaccess.h>
  14. #include <asm/pgtable.h>
  15. static struct fs_struct init_fs = INIT_FS;
  16. static struct files_struct init_files = INIT_FILES;
  17. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  18. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  19. struct mm_struct init_mm = INIT_MM(init_mm);
  20. EXPORT_SYMBOL(init_mm);
  21. /*
  22. * Initial thread structure.
  23. *
  24. * We need to make sure that this is 8192-byte aligned due to the
  25. * way process stacks are handled. This is done by having a special
  26. * "init_task" linker map entry..
  27. */
  28. union thread_union init_thread_union
  29. __attribute__((__section__(".data.init_task"))) =
  30. { INIT_THREAD_INFO(init_task) };
  31. /*
  32. * Initial task structure.
  33. *
  34. * All other task structs will be allocated on slabs in fork.c
  35. */
  36. struct task_struct init_task = INIT_TASK(init_task);
  37. EXPORT_SYMBOL(init_task);