aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 17:51:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:13:01 -0400
commit4ff83ce1114827f707b7f1f4f2e5f69de9df94ac (patch)
treec810839d94475729bd235fe1b39c03298b667fb4 /arch/um/include
parenteb8307595baa729a12db0fec9a80910b13bd6fc8 (diff)
uml: create as-layout.h
This patch moves all the the symbols defined in um_arch.c, which are mostly boundaries between different parts of the UML kernel address space, to a new header, as-layout.h. There are also a few things here which aren't really related to address space layout, but which don't really have a better place to go. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/as-layout.h35
-rw-r--r--arch/um/include/user_util.h23
2 files changed, 35 insertions, 23 deletions
diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h
new file mode 100644
index 000000000000..fccf187bf4e1
--- /dev/null
+++ b/arch/um/include/as-layout.h
@@ -0,0 +1,35 @@
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 "sysdep/ptrace.h"
10
11struct cpu_task {
12 int pid;
13 void *task;
14};
15
16extern struct cpu_task cpu_tasks[];
17
18extern unsigned long low_physmem;
19extern unsigned long high_physmem;
20extern unsigned long uml_physmem;
21extern unsigned long uml_reserved;
22extern unsigned long end_vm;
23extern unsigned long start_vm;
24extern unsigned long long highmem;
25
26extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end;
27extern unsigned long _unprotected_end;
28extern unsigned long brk_start;
29
30extern int linux_main(int argc, char **argv);
31extern void set_cmdline(char *cmd);
32
33extern void (*sig_info[])(int, union uml_pt_regs *);
34
35#endif
diff --git a/arch/um/include/user_util.h b/arch/um/include/user_util.h
index fabad2372af0..f04776e2436f 100644
--- a/arch/um/include/user_util.h
+++ b/arch/um/include/user_util.h
@@ -30,30 +30,7 @@ extern int grantpt(int __fd);
30extern int unlockpt(int __fd); 30extern int unlockpt(int __fd);
31extern char *ptsname(int __fd); 31extern char *ptsname(int __fd);
32 32
33struct cpu_task {
34 int pid;
35 void *task;
36};
37
38extern struct cpu_task cpu_tasks[];
39
40extern void (*sig_info[])(int, union uml_pt_regs *);
41
42extern unsigned long low_physmem;
43extern unsigned long high_physmem;
44extern unsigned long uml_physmem;
45extern unsigned long uml_reserved;
46extern unsigned long end_vm;
47extern unsigned long start_vm;
48extern unsigned long long highmem;
49
50extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end;
51extern unsigned long _unprotected_end;
52extern unsigned long brk_start;
53
54extern void *add_signal_handler(int sig, void (*handler)(int)); 33extern void *add_signal_handler(int sig, void (*handler)(int));
55extern int linux_main(int argc, char **argv);
56extern void set_cmdline(char *cmd);
57extern void input_cb(void (*proc)(void *), void *arg, int arg_len); 34extern void input_cb(void (*proc)(void *), void *arg, int arg_len);
58extern int get_pty(void); 35extern int get_pty(void);
59extern int switcheroo(int fd, int prot, void *from, void *to, int size); 36extern int switcheroo(int fd, int prot, void *from, void *to, int size);