diff options
author | Jarkko Sakkinen <jarkko.sakkinen@intel.com> | 2012-05-08 14:22:26 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-08 14:41:49 -0400 |
commit | 084ee1c641a068bfd1194d545f7dc9ab2043eb35 (patch) | |
tree | bc5454aedede17313df04eb82d354a76d14ee284 /arch/x86/kernel/setup.c | |
parent | b3266bd6ff52efb9e57c7fbfff4c8f7363dfaab3 (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.c | 2 |
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 | ||