Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
0004  */
0005 
0006 #ifndef __START_H__
0007 #define __START_H__
0008 
0009 #include <generated/asm-offsets.h>
0010 
0011 /*
0012  * Stolen from linux/const.h, which can't be directly included since
0013  * this is used in userspace code, which has no access to the kernel
0014  * headers.  Changed to be suitable for adding casts to the start,
0015  * rather than "UL" to the end.
0016  */
0017 
0018 /* Some constant macros are used in both assembler and
0019  * C code.  Therefore we cannot annotate them always with
0020  * 'UL' and other type specifiers unilaterally.  We
0021  * use the following macros to deal with this.
0022  */
0023 #define STUB_START stub_start
0024 #define STUB_CODE STUB_START
0025 #define STUB_DATA (STUB_CODE + UM_KERN_PAGE_SIZE)
0026 #define STUB_END (STUB_DATA + UM_KERN_PAGE_SIZE)
0027 
0028 #ifndef __ASSEMBLY__
0029 
0030 #include <sysdep/ptrace.h>
0031 
0032 struct cpu_task {
0033     int pid;
0034     void *task;
0035 };
0036 
0037 extern struct cpu_task cpu_tasks[];
0038 
0039 extern unsigned long high_physmem;
0040 extern unsigned long uml_physmem;
0041 extern unsigned long uml_reserved;
0042 extern unsigned long end_vm;
0043 extern unsigned long start_vm;
0044 extern unsigned long long highmem;
0045 
0046 extern unsigned long brk_start;
0047 
0048 extern unsigned long host_task_size;
0049 extern unsigned long stub_start;
0050 
0051 extern int linux_main(int argc, char **argv);
0052 extern void uml_finishsetup(void);
0053 
0054 struct siginfo;
0055 extern void (*sig_info[])(int, struct siginfo *si, struct uml_pt_regs *);
0056 
0057 #endif
0058 
0059 #endif