diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-17 13:48:37 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:55:19 -0400 |
commit | 8569c9140bd41089f9b6be8837ca421102714a90 (patch) | |
tree | cd289b322b215fe2ca2530aa320febfd99388d7f /arch/um/include/shared/as-layout.h | |
parent | 2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff) |
x86, um: take arch/um/include/* out of the way
We can't just plop asm/* into it - userland helpers are built with it
in search path and seeing asm/* show up there suddenly would be a bad
idea.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/um/include/shared/as-layout.h')
-rw-r--r-- | arch/um/include/shared/as-layout.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/arch/um/include/shared/as-layout.h b/arch/um/include/shared/as-layout.h new file mode 100644 index 000000000000..58e852dfb0ce --- /dev/null +++ b/arch/um/include/shared/as-layout.h | |||
@@ -0,0 +1,68 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __START_H__ | ||
7 | #define __START_H__ | ||
8 | |||
9 | #include "uml-config.h" | ||
10 | #include "kern_constants.h" | ||
11 | |||
12 | /* | ||
13 | * Stolen from linux/const.h, which can't be directly included since | ||
14 | * this is used in userspace code, which has no access to the kernel | ||
15 | * headers. Changed to be suitable for adding casts to the start, | ||
16 | * rather than "UL" to the end. | ||
17 | */ | ||
18 | |||
19 | /* Some constant macros are used in both assembler and | ||
20 | * C code. Therefore we cannot annotate them always with | ||
21 | * 'UL' and other type specifiers unilaterally. We | ||
22 | * use the following macros to deal with this. | ||
23 | */ | ||
24 | |||
25 | #ifdef __ASSEMBLY__ | ||
26 | #define _UML_AC(X, Y) (Y) | ||
27 | #else | ||
28 | #define __UML_AC(X, Y) (X(Y)) | ||
29 | #define _UML_AC(X, Y) __UML_AC(X, Y) | ||
30 | #endif | ||
31 | |||
32 | #define STUB_START _UML_AC(, 0x100000) | ||
33 | #define STUB_CODE _UML_AC((unsigned long), STUB_START) | ||
34 | #define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE) | ||
35 | #define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE) | ||
36 | |||
37 | #ifndef __ASSEMBLY__ | ||
38 | |||
39 | #include "sysdep/ptrace.h" | ||
40 | |||
41 | struct cpu_task { | ||
42 | int pid; | ||
43 | void *task; | ||
44 | }; | ||
45 | |||
46 | extern struct cpu_task cpu_tasks[]; | ||
47 | |||
48 | extern unsigned long low_physmem; | ||
49 | extern unsigned long high_physmem; | ||
50 | extern unsigned long uml_physmem; | ||
51 | extern unsigned long uml_reserved; | ||
52 | extern unsigned long end_vm; | ||
53 | extern unsigned long start_vm; | ||
54 | extern unsigned long long highmem; | ||
55 | |||
56 | extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end; | ||
57 | extern unsigned long _unprotected_end; | ||
58 | extern unsigned long brk_start; | ||
59 | |||
60 | extern unsigned long host_task_size; | ||
61 | |||
62 | extern int linux_main(int argc, char **argv); | ||
63 | |||
64 | extern void (*sig_info[])(int, struct uml_pt_regs *); | ||
65 | |||
66 | #endif | ||
67 | |||
68 | #endif | ||