UML - x86-64 headers
PATCH 12/28 UML - x86-64 headers
Add a bunch of headers to include/asm-um to support x86_64.
Also move some arch-specific things from generic files to x86-specific ones.
Signed-off-by Jeff Dike <[email protected]>
include/asm-um/archparam-i386.h +7 -0
@@ -66,6 +66,13 @@#define VSYSCALL_END vsyscall_end/* +* This is the range that is readable by user mode, and things +* acting like user mode such as get_user_pages. +*/ +#define FIXADDR_USER_START VSYSCALL_BASE +#define FIXADDR_USER_END VSYSCALL_END + +/* * Architecture-neutral AT_ values in 0-17, leave some room * for more of them, start the x86-specific ones at 32. */
include/asm-um/archparam-x86_64.h +62 -0
62 lines not on this page · raw message
include/asm-um/calling.h +9 -0
@@ -0,0 +1,9 @@ +# Copyright 2003 - 2004 Pathscale, Inc +# Released under the GPL + +#ifndef __UM_CALLING_H/* XXX x86_64 */ +#define __UM_CALLING_H + +#include "asm/arch/calling.h" + +#endif
include/asm-um/dwarf2.h +11 -0
@@ -0,0 +1,11 @@ +/* Copyright 2003 - 2004 Pathscale, Inc +* Released under the GPL +*/ + +/* Needed on x86_64 by thunk.S */ +#ifndef __UM_DWARF2_H +#define __UM_DWARF2_H + +#include "asm/arch/dwarf2.h" + +#endif
include/asm-um/elf.h +5 -0
@@ -1,6 +1,7 @@#ifndef __UM_ELF_H#define __UM_ELF_H +#include "linux/config.h" #include "asm/archparam.h" extern long elf_aux_hwcap;
@@ -12,7 +13,11 @@#define elf_check_arch (x) (1) +#ifdef CONFIG_64_BIT +#define ELF_CLASS ELFCLASS64 +#else #define ELF_CLASS ELFCLASS32 +#endif #define USE_ELF_CORE_DUMP
include/asm-um/fixmap.h +0 -7
@@ -64,13 +64,6 @@#define __fix_to_virt (x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))#define __virt_to_fix (x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT) -/* -* This is the range that is readable by user mode, and things -* acting like user mode such as get_user_pages. -*/ -#define FIXADDR_USER_START VSYSCALL_BASE -#define FIXADDR_USER_END VSYSCALL_END -extern void __this_fixmap_does_not_exist (void );/*