diff options
Diffstat (limited to 'arch/um/include/as-layout.h')
| -rw-r--r-- | arch/um/include/as-layout.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h index 2f16a1c7d616..a5cdf953e04a 100644 --- a/arch/um/include/as-layout.h +++ b/arch/um/include/as-layout.h | |||
| @@ -6,6 +6,28 @@ | |||
| 6 | #ifndef __START_H__ | 6 | #ifndef __START_H__ |
| 7 | #define __START_H__ | 7 | #define __START_H__ |
| 8 | 8 | ||
| 9 | #include "uml-config.h" | ||
| 10 | #include "kern_constants.h" | ||
| 11 | |||
| 12 | /* | ||
| 13 | * Assembly doesn't want any casting, but C does, so define these | ||
| 14 | * without casts here, and define new symbols with casts inside the C | ||
| 15 | * section. | ||
| 16 | */ | ||
| 17 | #define ASM_STUB_CODE (UML_CONFIG_TOP_ADDR - 2 * UM_KERN_PAGE_SIZE) | ||
| 18 | #define ASM_STUB_DATA (UML_CONFIG_TOP_ADDR - UM_KERN_PAGE_SIZE) | ||
| 19 | #define ASM_STUB_START ASM_STUB_CODE | ||
| 20 | |||
| 21 | /* | ||
| 22 | * This file is included by the assembly stubs, which just want the | ||
| 23 | * definitions above. | ||
| 24 | */ | ||
| 25 | #ifndef __ASSEMBLY__ | ||
| 26 | |||
| 27 | #define STUB_CODE ((unsigned long) ASM_STUB_CODE) | ||
| 28 | #define STUB_DATA ((unsigned long) ASM_STUB_DATA) | ||
| 29 | #define STUB_START ((unsigned long) ASM_STUB_START) | ||
| 30 | |||
| 9 | #include "sysdep/ptrace.h" | 31 | #include "sysdep/ptrace.h" |
| 10 | 32 | ||
| 11 | struct cpu_task { | 33 | struct cpu_task { |
| @@ -32,3 +54,5 @@ extern int linux_main(int argc, char **argv); | |||
| 32 | extern void (*sig_info[])(int, struct uml_pt_regs *); | 54 | extern void (*sig_info[])(int, struct uml_pt_regs *); |
| 33 | 55 | ||
| 34 | #endif | 56 | #endif |
| 57 | |||
| 58 | #endif | ||
