kernel-ark/arch/x86/boot
H. Peter Anvin 433de739bb x86, realmode: 16-bit real-mode code support for relocs tool
A new option is added to the relocs tool called '--realmode'.
This option causes the generation of 16-bit segment relocations
and 32-bit linear relocations for the real-mode code. When
the real-mode code is moved to the low-memory during kernel
initialization, these relocation entries can be used to
relocate the code properly.

In the assembly code 16-bit segment relocations must be relative
to the 'real_mode_seg' absolute symbol. Linear relocations must be
relative to a symbol prefixed with 'pa_'.

16-bit segment relocation is used to load cs:ip in 16-bit code.
Linear relocations are used in the 32-bit code for relocatable
data references. They are declared in the linker script of the
real-mode code.

The relocs tool is moved to scripts/x86-relocs.c so it will
be compiled before building the arch/x86 tree.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1336501366-28617-2-git-send-email-jarkko.sakkinen@intel.com
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-05-08 11:41:43 -07:00
..
compressed x86, realmode: 16-bit real-mode code support for relocs tool 2012-05-08 11:41:43 -07:00
tools x86, efi: Add dedicated EFI stub entry point 2012-04-16 11:41:44 -07:00
.gitignore
a20.c
apm.c
bioscall.S
bitops.h
boot.h x86, boot: Fix port argument to inl() function 2012-01-31 12:05:54 -08:00
cmdline.c x86, setup: reorganize the early console setup 2010-08-02 15:51:56 -07:00
code16gcc.h
copy.S
cpu.c
cpucheck.c
ctype.h x86, setup: move isdigit.h to ctype.h, header files on top. 2010-08-02 21:07:20 -07:00
early_serial_console.c x86, setup: Fix earlyprintk=serial,0x3f8,115200 2010-09-21 10:18:33 -07:00
edd.c
header.S x86, efi: EFI boot stub support 2011-12-12 14:26:10 -08:00
install.sh
main.c x86, setup: enable early console output from the decompressor 2010-08-02 20:32:20 -07:00
Makefile x86, boot: Correct CFLAGS for hostprogs 2012-03-22 12:42:51 -07:00
mca.c
memory.c x86, setup: When probing memory with e801, use ax/bx as a pair 2011-04-25 14:52:37 -07:00
mkcpustr.c
mtools.conf.in
pm.c
pmjump.S
printf.c x86, setup: reorganize the early console setup 2010-08-02 15:51:56 -07:00
regs.c
setup.ld
string.c x86, efi: EFI boot stub support 2011-12-12 14:26:10 -08:00
tty.c x86, setup: reorganize the early console setup 2010-08-02 15:51:56 -07:00
version.c
vesa.h
video-bios.c
video-mode.c
video-vesa.c
video-vga.c x86, setup: Set ax register in boot vga query 2010-06-10 15:24:29 -07:00
video.c
video.h