aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>2012-05-08 14:22:26 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-08 14:41:49 -0400
commit084ee1c641a068bfd1194d545f7dc9ab2043eb35 (patch)
treebc5454aedede17313df04eb82d354a76d14ee284 /arch/x86/kernel/setup.c
parentb3266bd6ff52efb9e57c7fbfff4c8f7363dfaab3 (diff)
x86, realmode: Relocator for realmode code
Implements relocator for real mode code that is called as part of setup_arch(). Processes segment relocations and linear relocations. Real-mode code is relocated to a free hole below 1 MB. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com> Link: http://lkml.kernel.org/r/1336501366-28617-4-git-send-email-jarkko.sakkinen@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 1a2901562059..56e41242a6b8 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -74,6 +74,7 @@
74#include <asm/mtrr.h> 74#include <asm/mtrr.h>
75#include <asm/apic.h> 75#include <asm/apic.h>
76#include <asm/trampoline.h> 76#include <asm/trampoline.h>
77#include <asm/realmode.h>
77#include <asm/e820.h> 78#include <asm/e820.h>
78#include <asm/mpspec.h> 79#include <asm/mpspec.h>
79#include <asm/setup.h> 80#include <asm/setup.h>
@@ -918,6 +919,7 @@ void __init setup_arch(char **cmdline_p)
918 max_pfn_mapped<<PAGE_SHIFT); 919 max_pfn_mapped<<PAGE_SHIFT);
919 920
920 setup_trampolines(); 921 setup_trampolines();
922 setup_real_mode();
921 923
922 init_gbpages(); 924 init_gbpages();
923 925