as-layout.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  4. */
  5. #ifndef __START_H__
  6. #define __START_H__
  7. #include <generated/asm-offsets.h>
  8. /*
  9. * Stolen from linux/const.h, which can't be directly included since
  10. * this is used in userspace code, which has no access to the kernel
  11. * headers. Changed to be suitable for adding casts to the start,
  12. * rather than "UL" to the end.
  13. */
  14. /* Some constant macros are used in both assembler and
  15. * C code. Therefore we cannot annotate them always with
  16. * 'UL' and other type specifiers unilaterally. We
  17. * use the following macros to deal with this.
  18. */
  19. #define STUB_START stub_start
  20. #define STUB_CODE STUB_START
  21. #define STUB_DATA (STUB_CODE + UM_KERN_PAGE_SIZE)
  22. #define STUB_END (STUB_DATA + UM_KERN_PAGE_SIZE)
  23. #ifndef __ASSEMBLY__
  24. #include <sysdep/ptrace.h>
  25. struct cpu_task {
  26. int pid;
  27. void *task;
  28. };
  29. extern struct cpu_task cpu_tasks[];
  30. extern unsigned long high_physmem;
  31. extern unsigned long uml_physmem;
  32. extern unsigned long uml_reserved;
  33. extern unsigned long end_vm;
  34. extern unsigned long start_vm;
  35. extern unsigned long long highmem;
  36. extern unsigned long brk_start;
  37. extern unsigned long host_task_size;
  38. extern unsigned long stub_start;
  39. extern int linux_main(int argc, char **argv);
  40. extern void uml_finishsetup(void);
  41. struct siginfo;
  42. extern void (*sig_info[])(int, struct siginfo *si, struct uml_pt_regs *);
  43. #endif
  44. #endif