init_task.c
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/arch/arm/kernel/init_task.c
  3.  */
  4. #include <linux/mm.h>
  5. #include <linux/fs.h>
  6. #include <linux/sched.h>
  7. #include <linux/init.h>
  8. #include <asm/uaccess.h>
  9. #include <asm/pgtable.h>
  10. static struct fs_struct init_fs = INIT_FS;
  11. static struct files_struct init_files = INIT_FILES;
  12. static struct signal_struct init_signals = INIT_SIGNALS;
  13. struct mm_struct init_mm = INIT_MM(init_mm);
  14. /*
  15.  * Initial task structure.
  16.  *
  17.  * We need to make sure that this is 8192-byte aligned due to the
  18.  * way process stacks are handled. This is done by making sure
  19.  * the linker maps this in the .text segment right after head.S,
  20.  * and making head.S ensure the proper alignment.
  21.  *
  22.  * The things we do for performance..
  23.  */
  24. union task_union init_task_union __attribute__((__section__(".init.task"))) =
  25. { INIT_TASK(init_task_union.task) };