diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2008-02-19 06:12:30 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:48 -0400 |
commit | 87253d1b4f2b5a29bdfc6275b9fb52a47d72df64 (patch) | |
tree | c2381c07282c356a3e64828b6d0a75e275938d44 | |
parent | bc0a733facbbde6c464e3ba5e165607fe4824cca (diff) |
x86: boot protocol updates
Also update field names to simply payload_{offset,length} so as to not rule
out uncompressed images.
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | Documentation/i386/boot.txt | 18 | ||||
-rw-r--r-- | arch/x86/boot/header.S | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Documentation/i386/boot.txt b/Documentation/i386/boot.txt index 05c24dfd7ecf..2eb16100bb3f 100644 --- a/Documentation/i386/boot.txt +++ b/Documentation/i386/boot.txt | |||
@@ -170,8 +170,8 @@ Offset Proto Name Meaning | |||
170 | 0238/4 2.06+ cmdline_size Maximum size of the kernel command line | 170 | 0238/4 2.06+ cmdline_size Maximum size of the kernel command line |
171 | 023C/4 2.07+ hardware_subarch Hardware subarchitecture | 171 | 023C/4 2.07+ hardware_subarch Hardware subarchitecture |
172 | 0240/8 2.07+ hardware_subarch_data Subarchitecture-specific data | 172 | 0240/8 2.07+ hardware_subarch_data Subarchitecture-specific data |
173 | 0248/4 2.08+ compressed_payload_offset | 173 | 0248/4 2.08+ payload_offset Offset of kernel payload |
174 | 024C/4 2.08+ compressed_payload_length | 174 | 024C/4 2.08+ payload_length Length of kernel payload |
175 | 175 | ||
176 | (1) For backwards compatibility, if the setup_sects field contains 0, the | 176 | (1) For backwards compatibility, if the setup_sects field contains 0, the |
177 | real value is 4. | 177 | real value is 4. |
@@ -514,22 +514,24 @@ Protocol: 2.07+ | |||
514 | 514 | ||
515 | A pointer to data that is specific to hardware subarch | 515 | A pointer to data that is specific to hardware subarch |
516 | 516 | ||
517 | Field name: compressed_payload_offset | 517 | Field name: payload_offset |
518 | Type: read | 518 | Type: read |
519 | Offset/size: 0x248/4 | 519 | Offset/size: 0x248/4 |
520 | Protocol: 2.08+ | 520 | Protocol: 2.08+ |
521 | 521 | ||
522 | If non-zero then this field contains the offset from the end of the | 522 | If non-zero then this field contains the offset from the end of the |
523 | real-mode code to the compressed payload. The compression format | 523 | real-mode code to the payload. |
524 | should be determined using the standard magic number, currently only | 524 | |
525 | gzip is used. | 525 | The payload may be compressed. The format of both the compressed and |
526 | uncompressed data should be determined using the standard magic | ||
527 | numbers. Currently only gzip compressed ELF is used. | ||
526 | 528 | ||
527 | Field name: compressed_payload_length | 529 | Field name: payload_length |
528 | Type: read | 530 | Type: read |
529 | Offset/size: 0x24c/4 | 531 | Offset/size: 0x24c/4 |
530 | Protocol: 2.08+ | 532 | Protocol: 2.08+ |
531 | 533 | ||
532 | The length of the compressed payload. | 534 | The length of the payload. |
533 | 535 | ||
534 | **** THE IMAGE CHECKSUM | 536 | **** THE IMAGE CHECKSUM |
535 | 537 | ||
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 40c91bb483e1..6d2df8d61c54 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S | |||
@@ -224,10 +224,8 @@ hardware_subarch: .long 0 # subarchitecture, added with 2.07 | |||
224 | 224 | ||
225 | hardware_subarch_data: .quad 0 | 225 | hardware_subarch_data: .quad 0 |
226 | 226 | ||
227 | compressed_payload_offset: | 227 | payload_offset: .long input_data |
228 | .long input_data | 228 | payload_length: .long input_data_end-input_data |
229 | compressed_payload_length: | ||
230 | .long input_data_end-input_data | ||
231 | 229 | ||
232 | # End of setup header ##################################################### | 230 | # End of setup header ##################################################### |
233 | 231 | ||