You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.6 KiB
68 lines
1.6 KiB
18 years ago
|
/*
|
||
|
* Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
||
|
* Licensed under the GPL
|
||
|
*/
|
||
|
|
||
|
#ifndef __START_H__
|
||
|
#define __START_H__
|
||
|
|
||
17 years ago
|
#include "kern_constants.h"
|
||
|
|
||
|
/*
|
||
17 years ago
|
* Stolen from linux/const.h, which can't be directly included since
|
||
|
* this is used in userspace code, which has no access to the kernel
|
||
|
* headers. Changed to be suitable for adding casts to the start,
|
||
|
* rather than "UL" to the end.
|
||
17 years ago
|
*/
|
||
|
|
||
17 years ago
|
/* Some constant macros are used in both assembler and
|
||
|
* C code. Therefore we cannot annotate them always with
|
||
|
* 'UL' and other type specifiers unilaterally. We
|
||
|
* use the following macros to deal with this.
|
||
17 years ago
|
*/
|
||
|
|
||
17 years ago
|
#ifdef __ASSEMBLY__
|
||
17 years ago
|
#define _UML_AC(X, Y) (Y)
|
||
17 years ago
|
#else
|
||
17 years ago
|
#define __UML_AC(X, Y) (X(Y))
|
||
|
#define _UML_AC(X, Y) __UML_AC(X, Y)
|
||
17 years ago
|
#endif
|
||
|
|
||
17 years ago
|
#define STUB_START _UML_AC(, 0x100000)
|
||
|
#define STUB_CODE _UML_AC((unsigned long), STUB_START)
|
||
|
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
|
||
|
#define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE)
|
||
17 years ago
|
|
||
|
#ifndef __ASSEMBLY__
|
||
17 years ago
|
|
||
18 years ago
|
#include "sysdep/ptrace.h"
|
||
|
|
||
|
struct cpu_task {
|
||
|
int pid;
|
||
|
void *task;
|
||
|
};
|
||
|
|
||
|
extern struct cpu_task cpu_tasks[];
|
||
|
|
||
|
extern unsigned long low_physmem;
|
||
|
extern unsigned long high_physmem;
|
||
|
extern unsigned long uml_physmem;
|
||
|
extern unsigned long uml_reserved;
|
||
|
extern unsigned long end_vm;
|
||
|
extern unsigned long start_vm;
|
||
|
extern unsigned long long highmem;
|
||
|
|
||
|
extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end;
|
||
|
extern unsigned long _unprotected_end;
|
||
|
extern unsigned long brk_start;
|
||
|
|
||
17 years ago
|
extern unsigned long host_task_size;
|
||
|
|
||
18 years ago
|
extern int linux_main(int argc, char **argv);
|
||
|
|
||
17 years ago
|
extern void (*sig_info[])(int, struct uml_pt_regs *);
|
||
18 years ago
|
|
||
|
#endif
|
||
17 years ago
|
|
||
|
#endif
|