Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43039
b: refs/heads/master
c: be274ee
h: refs/heads/master
i:
  43037: 342e5d7
  43035: 8b31da2
  43031: 7f3db00
  43023: c42067a
  43007: 23e9d19
v: v3
  • Loading branch information
Vivek Goyal authored and Andi Kleen committed Dec 7, 2006
1 parent e977e43 commit 1545cce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e69f202d0a1419219198566e1c22218a5c71a9a6
refs/heads/master: be274eeaf20b4c7155242645d5e2c48b023e609b
4 changes: 4 additions & 0 deletions trunk/Documentation/i386/boot.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Protocol 2.03: (Kernel 2.4.18-pre1) Explicitly makes the highest possible
initrd address available to the bootloader.

Protocol 2.04: (Kernel 2.6.14) Extend the syssize field to four bytes.
Protocol 2.05: (Kernel 2.6.20) Make protected mode kernel relocatable.
Introduce relocatable_kernel and kernel_alignment fields.


**** MEMORY LAYOUT
Expand Down Expand Up @@ -129,6 +131,8 @@ Offset Proto Name Meaning
0226/2 N/A pad1 Unused
0228/4 2.02+ cmd_line_ptr 32-bit pointer to the kernel command line
022C/4 2.03+ initrd_addr_max Highest legal initrd address
0230/4 2.04+ kernel_alignment Physical addr alignment required for kernel
0234/1 2.04+ relocatable_kernel Whether kernel is relocatable or not

(1) For backwards compatibility, if the setup_sects field contains 0, the
real value is 4.
Expand Down
13 changes: 12 additions & 1 deletion trunk/arch/i386/boot/setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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
Expand Down Expand Up @@ -160,6 +160,17 @@ ramdisk_max: .long (-__PAGE_OFFSET-(512 << 20)-1) & 0x7fffffff
# The highest safe address for
# the contents of an initrd

kernel_alignment: .long CONFIG_PHYSICAL_ALIGN #physical addr alignment
#required for protected mode
#kernel
#ifdef CONFIG_RELOCATABLE
relocatable_kernel: .byte 1
#else
relocatable_kernel: .byte 0
#endif
pad2: .byte 0
pad3: .word 0

trampoline: call start_of_setup
.align 16
# The offset at this point is 0x240
Expand Down

0 comments on commit 1545cce

Please sign in to comment.