as-layout.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __START_H__
  6. #define __START_H__
  7. #include "uml-config.h"
  8. #include "kern_constants.h"
  9. /*
  10. * Assembly doesn't want any casting, but C does, so define these
  11. * without casts here, and define new symbols with casts inside the C
  12. * section.
  13. */
  14. #define ASM_STUB_CODE (UML_CONFIG_TOP_ADDR - 2 * UM_KERN_PAGE_SIZE)
  15. #define ASM_STUB_DATA (UML_CONFIG_TOP_ADDR - UM_KERN_PAGE_SIZE)
  16. #define ASM_STUB_START ASM_STUB_CODE
  17. /*
  18. * This file is included by the assembly stubs, which just want the
  19. * definitions above.
  20. */
  21. #ifndef __ASSEMBLY__
  22. #define STUB_CODE ((unsigned long) ASM_STUB_CODE)
  23. #define STUB_DATA ((unsigned long) ASM_STUB_DATA)
  24. #define STUB_START ((unsigned long) ASM_STUB_START)
  25. #include "sysdep/ptrace.h"
  26. struct cpu_task {
  27. int pid;
  28. void *task;
  29. };
  30. extern struct cpu_task cpu_tasks[];
  31. extern unsigned long low_physmem;
  32. extern unsigned long high_physmem;
  33. extern unsigned long uml_physmem;
  34. extern unsigned long uml_reserved;
  35. extern unsigned long end_vm;
  36. extern unsigned long start_vm;
  37. extern unsigned long long highmem;
  38. extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end;
  39. extern unsigned long _unprotected_end;
  40. extern unsigned long brk_start;
  41. extern int linux_main(int argc, char **argv);
  42. extern void (*sig_info[])(int, struct uml_pt_regs *);
  43. #endif
  44. #endif