login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
17
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot protocol
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: H. Peter Anvin
Subject:
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot protocol
Date: Monday, September 17, 2007 - 8:29 am
Huang, Ying wrote:
quoted text
> This patch defines a 32-bit boot protocol and adds corresponding > document. > + > +In addition to read/modify/write kernel header of the zero page as > +that of 16-bit boot protocol, the boot loader should fill the > +following additional fields of the zero page too. > + > +Offset Type Description > +------ ---- ----------- > + 0 32 bytes struct screen_info, SCREEN_INFO > + ATTENTION, overlaps the following !!! > + 2 unsigned short EXT_MEM_K, extended memory size in Kb (from int 0x15) > + 0x20 unsigned short CL_MAGIC, commandline magic number (=0xA33F) > + 0x22 unsigned short CL_OFFSET, commandline offset > + Address of commandline is calculated: > + 0x90000 + contents of CL_OFFSET > + (only taken, when CL_MAGIC = 0xA33F) > + 0x40 20 bytes struct apm_bios_info, APM_BIOS_INFO > + 0x60 16 bytes Intel SpeedStep (IST) BIOS support information > + 0x80 16 bytes hd0-disk-parameter from intvector 0x41 > + 0x90 16 bytes hd1-disk-parameter from intvector 0x46 > + > + 0xa0 16 bytes System description table truncated to 16 bytes. > + ( struct sys_desc_table_struct ) > + 0xb0 - 0x13f Free. Add more parameters here if you really need them. > + 0x140- 0x1be EDID_INFO Video mode setup > + > +0x1c4 unsigned long EFI system table pointer > +0x1c8 unsigned long EFI memory descriptor size > +0x1cc unsigned long EFI memory descriptor version > +0x1d0 unsigned long EFI memory descriptor map pointer > +0x1d4 unsigned long EFI memory descriptor map size > +0x1e0 unsigned long ALT_MEM_K, alternative mem check, in Kb > +0x1e4 unsigned long Scratch field for the kernel setup code > +0x1e8 char number of entries in E820MAP (below) > +0x1e9 unsigned char number of entries in EDDBUF (below) > +0x1ea unsigned char number of entries in EDD_MBR_SIG_BUFFER (below) > +0x290 - 0x2cf EDD_MBR_SIG_BUFFER (edd.S) > +0x2d0 - 0xd00 E820MAP > +0xd00 - 0xeff EDDBUF (edd.S) for disk signature read sector > +0xd00 - 0xeeb EDDBUF (edd.S) for edd data > + > +After loading and setuping the zero page, the boot loader can load the > +32/64-bit kernel in the same way as that of 16-bit boot protocol. > + > +In 32-bit boot protocol, the kernel is started by jumping to the > +32-bit kernel entry point, which is the start address of loaded > +32/64-bit kernel. > + > +At entry, the CPU must be in 32-bit protected mode with paging > +disabled; the CS and DS must be 4G flat segments; %esi holds the base > +address of the "zero page"; %esp, %ebp, %edi should be zero.
This is just replicating the "zero-page.txt" document, which can best be described as a "total lie" -- compare with the actual structure. -hpa -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot p ...
, Huang, Ying
, (Mon Sep 17, 1:26 am)
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit bo ...
, H. Peter Anvin
, (Mon Sep 17, 8:29 am)
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit bo ...
, Huang, Ying
, (Mon Sep 17, 6:13 pm)
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit bo ...
, H. Peter Anvin
, (Mon Sep 17, 6:48 pm)
Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit bo ...
, Huang, Ying
, (Mon Sep 17, 7:56 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate