init_task.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #include <linux/mm.h>
  2. #include <linux/sched.h>
  3. #include <linux/init.h>
  4. #include <asm/uaccess.h>
  5. #include <asm/pgtable.h>
  6. #include <asm/pgalloc.h>
  7. static struct fs_struct init_fs = INIT_FS;
  8. static struct files_struct init_files = INIT_FILES;
  9. static struct signal_struct init_signals = INIT_SIGNALS;
  10. struct mm_struct init_mm = INIT_MM(init_mm);
  11. /*
  12.  * Initial task structure.
  13.  *
  14.  * We need to make sure that this is 16384-byte aligned due to the
  15.  * way process stacks are handled. This is done by having a special
  16.  * "init_task" linker map entry..
  17.  */
  18. unsigned char interrupt_stack[ISTACK_SIZE] __attribute__ ((section("init_istack"), aligned(4096)));
  19. union task_union init_task_union 
  20. __attribute__((section("init_task"), aligned(4096))) = { INIT_TASK(init_task_union.task) };
  21. pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__ ((aligned(4096))) = { {0}, };
  22. #ifdef __LP64__
  23. unsigned long pmd0[PTRS_PER_PMD] __attribute__ ((aligned(4096))) = { 0, };
  24. #endif
  25. unsigned long pg0[PT_INITIAL * PTRS_PER_PTE] __attribute__ ((aligned(4096))) = { 0, };