aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/header.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/header.S')
-rw-r--r--arch/x86/boot/header.S15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index 27285143adeb..a0b426978d55 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -116,7 +116,7 @@ _start:
116 # Part 2 of the header, from the old setup.S 116 # Part 2 of the header, from the old setup.S
117 117
118 .ascii "HdrS" # header signature 118 .ascii "HdrS" # header signature
119 .word 0x0209 # header version number (>= 0x0105) 119 .word 0x020a # header version number (>= 0x0105)
120 # or else old loadlin-1.5 will fail) 120 # or else old loadlin-1.5 will fail)
121 .globl realmode_swtch 121 .globl realmode_swtch
122realmode_swtch: .word 0, 0 # default_switch, SETUPSEG 122realmode_swtch: .word 0, 0 # default_switch, SETUPSEG
@@ -201,7 +201,7 @@ relocatable_kernel: .byte 1
201#else 201#else
202relocatable_kernel: .byte 0 202relocatable_kernel: .byte 0
203#endif 203#endif
204pad2: .byte 0 204min_alignment: .byte MIN_KERNEL_ALIGN_LG2 # minimum alignment
205pad3: .word 0 205pad3: .word 0
206 206
207cmdline_size: .long COMMAND_LINE_SIZE-1 #length of the command line, 207cmdline_size: .long COMMAND_LINE_SIZE-1 #length of the command line,
@@ -220,6 +220,17 @@ setup_data: .quad 0 # 64-bit physical pointer to
220 # single linked list of 220 # single linked list of
221 # struct setup_data 221 # struct setup_data
222 222
223pref_address: .quad LOAD_PHYSICAL_ADDR # preferred load addr
224
225#define ZO_INIT_SIZE (ZO__end - ZO_startup_32 + ZO_extract_offset)
226#define VO_INIT_SIZE (VO__end - VO__text)
227#if ZO_INIT_SIZE > VO_INIT_SIZE
228#define INIT_SIZE ZO_INIT_SIZE
229#else
230#define INIT_SIZE VO_INIT_SIZE
231#endif
232init_size: .long INIT_SIZE # kernel initialization size
233
223# End of setup header ##################################################### 234# End of setup header #####################################################
224 235
225 .section ".inittext", "ax" 236 .section ".inittext", "ax"