2 * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
9 #include "uml-config.h"
10 #include "kern_constants.h"
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
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
22 * This file is included by the assembly stubs, which just want the
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)
31 #include "sysdep/ptrace.h"
38 extern struct cpu_task cpu_tasks
[];
40 extern unsigned long low_physmem
;
41 extern unsigned long high_physmem
;
42 extern unsigned long uml_physmem
;
43 extern unsigned long uml_reserved
;
44 extern unsigned long end_vm
;
45 extern unsigned long start_vm
;
46 extern unsigned long long highmem
;
48 extern unsigned long _stext
, _etext
, _sdata
, _edata
, __bss_start
, _end
;
49 extern unsigned long _unprotected_end
;
50 extern unsigned long brk_start
;
52 extern int linux_main(int argc
, char **argv
);
54 extern void (*sig_info
[])(int, struct uml_pt_regs
*);