aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>2012-05-08 21:22:26 +0300
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-08 11:41:49 -0700
commit084ee1c641a068bfd1194d545f7dc9ab2043eb35 (patch)
treebc5454aedede17313df04eb82d354a76d14ee284 /arch/x86/kernel/setup.c
parentb3266bd6ff52efb9e57c7fbfff4c8f7363dfaab3 (diff)
downloadkernel_goldelico_gta04-084ee1c641a068bfd1194d545f7dc9ab2043eb35.zip
kernel_goldelico_gta04-084ee1c641a068bfd1194d545f7dc9ab2043eb35.tar.gz
kernel_goldelico_gta04-084ee1c641a068bfd1194d545f7dc9ab2043eb35.tar.bz2
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 1a29015..56e4124 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -74,6 +74,7 @@
#include <asm/mtrr.h>
#include <asm/apic.h>
#include <asm/trampoline.h>
+#include <asm/realmode.h>
#include <asm/e820.h>
#include <asm/mpspec.h>
#include <asm/setup.h>
@@ -918,6 +919,7 @@ void __init setup_arch(char **cmdline_p)
max_pfn_mapped<<PAGE_SHIFT);
setup_trampolines();
+ setup_real_mode();
init_gbpages();