o Extend the bzImage protocol (same as i386) to allow bzImage loaders to
load the protected mode kernel at non-1MB address. Now protected mode
component is relocatable and can be loaded at non-1MB addresses.
o As of today kdump uses it to run a second kernel from a reserved memory
area.
Signed-off-by: Vivek Goyal <[EMAIL PROTECTED]>
---
arch/x86_64/boot/setup.S | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff -puN
arch/x86_64/boot/setup.S~x86_64-extend-bzImage-protocol-for-relocatable-bzImage
arch/x86_64/boot/setup.S
---
linux-2.6.19-rc5-reloc/arch/x86_64/boot/setup.S~x86_64-extend-bzImage-protocol-for-relocatable-bzImage
2006-11-09 23:07:08.000000000 -0500
+++ linux-2.6.19-rc5-reloc-root/arch/x86_64/boot/setup.S 2006-11-09
23:07:08.000000000 -0500
@@ -80,7 +80,7 @@ start:
# This is the setup header, and it must start at %cs:2 (old 0x9020:2)
.ascii "HdrS" # header signature
- .word 0x0204 # header version number (>= 0x0105)
+ .word 0x0205 # header version number (>= 0x0105)
# or else old loadlin-1.5 will fail)
realmode_swtch: .word 0, 0 # default_switch, SETUPSEG
start_sys_seg: .word SYSSEG
@@ -155,7 +155,12 @@ cmd_line_ptr: .long 0 # (Header versio
# low memory 0x10000 or higher.
ramdisk_max: .long 0xffffffff
-
+kernel_alignment: .long 0x200000 # physical addr alignment required for
+ # protected mode relocatable kernel
+relocatable_kernel: .byte 1
+pad2: .byte 0
+pad3: .word 0
+
trampoline: call start_of_setup
.align 16
# The offset at this point is 0x240
_
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot
- [Fastboot] [RFC] [PATCH 11/16] x86_64: Modify discover_e... Vivek Goyal
- [Fastboot] [RFC] [PATCH 14/16] x86_64: Remove CONFIG_PHY... Vivek Goyal
- [Fastboot] [RFC] [PATCH 8/16] x86_64: Add EFER to the se... Vivek Goyal
- [Fastboot] [RFC] [PATCH 5/16] x86_64: Fix earlyprintk to... Vivek Goyal
- [Fastboot] [RFC] [PATCH 6/16] x86_64: Modify copy_bootda... Vivek Goyal
- [Fastboot] [RFC] [PATCH 3/16] x86_64: Kill temp_boot_pmd... Vivek Goyal
- [Fastboot] [RFC] [PATCH 9/16] x86_64: 64bit PIC SMP tram... Vivek Goyal
- [Fastboot] [RFC] [PATCH 4/16] x86_64: Clean up the early... Vivek Goyal
- [Fastboot] [RFC] [PATCH 1/16] x86_64: Align data segment... Vivek Goyal
- [Fastboot] [RFC] [PATCH 16/16] x86_64: Extend bzImage pr... Vivek Goyal
- [Fastboot] [RFC] [PATCH 2/16] x86_64: Assembly safe page... Vivek Goyal
- Re: [Fastboot] [RFC] [PATCH 2/16] x86_64: Assembly ... Andi Kleen
- Re: [Fastboot] [RFC] [PATCH 2/16] x86_64: Assem... Eric W. Biederman
- Re: [Fastboot] [RFC] [PATCH 2/16] x86_64: Assem... Vivek Goyal
- Re: [Fastboot] [RFC] [PATCH 2/16] x86_64: A... Andi Kleen
- Re: [Fastboot] [RFC] [PATCH 2/16] x86_6... Eric W. Biederman
- [Fastboot] [RFC] [PATCH 15/16] x86_64: Relocatable kerne... Vivek Goyal
- [Fastboot] [RFC] [PATCH 13/16] x86_64: __pa and __pa_sym... Vivek Goyal
