Commit 4ff83ce1 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

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: default avatarJeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eb830759
/*
* Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#ifndef __START_H__
#define __START_H__
#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;
extern int linux_main(int argc, char **argv);
extern void set_cmdline(char *cmd);
extern void (*sig_info[])(int, union uml_pt_regs *);
#endif
...@@ -30,30 +30,7 @@ extern int grantpt(int __fd); ...@@ -30,30 +30,7 @@ extern int grantpt(int __fd);
extern int unlockpt(int __fd); extern int unlockpt(int __fd);
extern char *ptsname(int __fd); extern char *ptsname(int __fd);
struct cpu_task {
int pid;
void *task;
};
extern struct cpu_task cpu_tasks[];
extern void (*sig_info[])(int, union uml_pt_regs *);
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;
extern void *add_signal_handler(int sig, void (*handler)(int)); extern void *add_signal_handler(int sig, void (*handler)(int));
extern int linux_main(int argc, char **argv);
extern void set_cmdline(char *cmd);
extern void input_cb(void (*proc)(void *), void *arg, int arg_len); extern void input_cb(void (*proc)(void *), void *arg, int arg_len);
extern int get_pty(void); extern int get_pty(void);
extern int switcheroo(int fd, int prot, void *from, void *to, int size); extern int switcheroo(int fd, int prot, void *from, void *to, int size);
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "asm/uaccess.h" #include "asm/uaccess.h"
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "mem_user.h" #include "mem_user.h"
#include "kern.h" #include "kern.h"
#include "irq_user.h" #include "irq_user.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "asm/page.h" #include "asm/page.h"
#include "asm/tlbflush.h" #include "asm/tlbflush.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "user_util.h" #include "user_util.h"
#include "mem_user.h" #include "mem_user.h"
#include "os.h" #include "os.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "asm/pgalloc.h" #include "asm/pgalloc.h"
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "kern.h" #include "kern.h"
#include "mem_user.h" #include "mem_user.h"
#include "uml_uaccess.h" #include "uml_uaccess.h"
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "asm/types.h" #include "asm/types.h"
#include "asm/pgtable.h" #include "asm/pgtable.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "user_util.h" #include "user_util.h"
#include "mode_kern.h" #include "mode_kern.h"
#include "mem.h" #include "mem.h"
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "asm/user.h" #include "asm/user.h"
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "kern.h" #include "kern.h"
#include "signal_kern.h" #include "signal_kern.h"
#include "init.h" #include "init.h"
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "asm/uaccess.h" #include "asm/uaccess.h"
#include "asm/atomic.h" #include "asm/atomic.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "skas.h" #include "skas.h"
#include "os.h" #include "os.h"
#include "user_util.h" #include "user_util.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "asm/tlbflush.h" #include "asm/tlbflush.h"
#include "choose-mode.h" #include "choose-mode.h"
#include "mode_kern.h" #include "mode_kern.h"
#include "as-layout.h"
#include "user_util.h" #include "user_util.h"
#include "tlb.h" #include "tlb.h"
#include "mem.h" #include "mem.h"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "sysdep/sigcontext.h" #include "sysdep/sigcontext.h"
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "arch.h" #include "arch.h"
#include "kern.h" #include "kern.h"
#include "chan_kern.h" #include "chan_kern.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "asm/current.h" #include "asm/current.h"
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "arch.h" #include "arch.h"
#include "kern.h" #include "kern.h"
#include "mem_user.h" #include "mem_user.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <asm/page.h> #include <asm/page.h>
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "mem_user.h" #include "mem_user.h"
#include "irq_user.h" #include "irq_user.h"
#include "user.h" #include "user.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <errno.h> #include <errno.h>
#include "user_util.h" #include "user_util.h"
#include "kern_util.h" #include "kern_util.h"
#include "as-layout.h"
#include "task.h" #include "task.h"
#include "sigcontext.h" #include "sigcontext.h"
#include "skas.h" #include "skas.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment