init_task.c 963 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/xtensa/kernel/init_task.c
  3. *
  4. * Xtensa Processor version.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 2007 Tensilica Inc.
  11. *
  12. * Chris Zankel <chris@zankel.net>
  13. */
  14. #include <linux/mm.h>
  15. #include <linux/fs.h>
  16. #include <linux/init.h>
  17. #include <linux/init_task.h>
  18. #include <linux/module.h>
  19. #include <linux/mqueue.h>
  20. #include <asm/uaccess.h>
  21. static struct fs_struct init_fs = INIT_FS;
  22. static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
  23. static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
  24. struct mm_struct init_mm = INIT_MM(init_mm);
  25. EXPORT_SYMBOL(init_mm);
  26. union thread_union init_thread_union
  27. __attribute__((__section__(".data.init_task"))) =
  28. { INIT_THREAD_INFO(init_task) };
  29. struct task_struct init_task = INIT_TASK(init_task);
  30. EXPORT_SYMBOL(init_task);