Skip to contentSkip to conversation

Update 32 bit boot protocol

PATCH In review Bernhard Walle 2 participants 3 messages May 9, 2008 – May 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update 32 bit boot protocol

This patch updates the boot protocol to match with the kernel. See Documentation/i386/zero-page.txt in kernel.

The number of E820 map entries have been increased from 32 to 128. The update is necessary for the next patch that implements EDD support for kexec. when using the default 32 bit mode.

---
 doc/linux-i386-zero-page.txt |    3 +--
 include/x86/x86-linux.h      |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
doc/linux-i386-zero-page.txt +1 -2
@@ -75,5 +75,4 @@ Offset	Type		Description
 0x224	unsigned short	setup.S heap end pointer
 0x290 - 0x2cf		EDD_MBR_SIG_BUFFER (edd.S)
 0x2d0 - 0x600		E820MAP
-0x600 - 0x7ff		EDDBUF (edd.S) for disk signature read sector
-0x600 - 0x7eb		EDDBUF (edd.S) for edd data
+0xd00 - 0xeec		EDDBUF (edd.S) for edd data
include/x86/x86-linux.h +1 -1
@@ -4,7 +4,7 @@
 #define TENATIVE 0 /* Code that is tenatively correct but hasn't yet been officially accepted */
 
 #define E820MAP	0x2d0		/* our map */
-#define E820MAX	32		/* number of entries in E820MAP */
+#define E820MAX	128		/* number of entries in E820MAP */
 #define E820NR	0x1e8		/* # entries in E820MAP */
 
 #ifndef ASSEMBLY

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#1 lore raw
Quoted 9 lines · Bernhard Walle

This patch updates the boot protocol to match with the kernel. See Documentation/i386/zero-page.txt in kernel.

The number of E820 map entries have been increased from 32 to 128. The update is necessary for the next patch that implements EDD support for kexec. when using the default 32 bit mode.

Thanks, I have applied this change, though I
am a little confused about the relationship between the information in (kernel/)Documentation/i386/zero-page.txt and (kexec-tools-testing/)doc/linux-i386-zero-page.txt.

Signature · 7 lines
Horms


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#2 lore raw
Quoted 10 lines · Simon Horman
Quoted 8 lines · Bernhard Walle

This patch updates the boot protocol to match with the kernel. See Documentation/i386/zero-page.txt in kernel.

The number of E820 map entries have been increased from 32 to 128. The update is necessary for the next patch that implements EDD support for kexec. when using the default 32 bit mode.

Quoted 6 lines
Quoted 1 line

Thanks, I have applied this change, though I
am a little confused about the relationship between the information in (kernel/)Documentation/i386/zero-page.txt and (kexec-tools-testing/)doc/linux-i386-zero-page.txt.

Well, it's supposed to contain the same information. I think the 32 bit boot protocol, i.e. the communication between the "setup" part of bzImage and the real Linux kernel, was "explored" and used by kexec first and then "standardised" by Linux developers. Therefore, the documentation appeared first in kexec-tools and then some kernel developer put it into documentation tree of the kernel.

Maybe it would make also sense to remove that part of documentation from kexec and just refer to the (more up to date) Linux documentation. But I leave this up to your decision. I just discovered that mistake.

Bernhard

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec