x86: delay CPA self-test and repeat it
[wrt350n-kernel.git] / arch / um / include / as-layout.h
blob606bb5c7fdf6a2714d68111cf96c0c7a72eed012
1 /*
2 * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
6 #ifndef __START_H__
7 #define __START_H__
9 #include "uml-config.h"
10 #include "kern_constants.h"
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.
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.
25 #ifdef __ASSEMBLY__
26 #define _AC(X, Y) (Y)
27 #else
28 #define __AC(X, Y) (X (Y))
29 #define _AC(X, Y) __AC(X, Y)
30 #endif
32 #define STUB_START _AC(, 0x100000)
33 #define STUB_CODE _AC((unsigned long), STUB_START)
34 #define STUB_DATA _AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
35 #define STUB_END _AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE)
37 #ifndef __ASSEMBLY__
39 #include "sysdep/ptrace.h"
41 struct cpu_task {
42 int pid;
43 void *task;
46 extern struct cpu_task cpu_tasks[];
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;
56 extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end;
57 extern unsigned long _unprotected_end;
58 extern unsigned long brk_start;
60 extern int linux_main(int argc, char **argv);
62 extern void (*sig_info[])(int, struct uml_pt_regs *);
64 #endif
66 #endif