Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/boot/head.S |
| 3 | * |
| 4 | * Copyright (C) 1991, 1992, 1993 Linus Torvalds |
| 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * head.S contains the 32-bit startup code. |
| 9 | * |
| 10 | * NOTE!!! Startup happens at absolute address 0x00001000, which is also where |
| 11 | * the page directory will exist. The startup code will be overwritten by |
| 12 | * the page directory. [According to comments etc elsewhere on a compressed |
| 13 | * kernel it will end up at 0x1000 + 1Mb I hope so as I assume this. - AC] |
| 14 | * |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 15 | * Page 0 is deliberately kept safe, since System Management Mode code in |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | * laptops may need to access the BIOS data stored there. This is also |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 17 | * useful for future device drivers that either access the BIOS via VM86 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | * mode. |
| 19 | */ |
| 20 | |
| 21 | /* |
| 22 | * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 |
| 23 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 24 | .text |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Tim Abbott | 1dc818c | 2009-09-16 16:44:27 -0400 | [diff] [blame] | 26 | #include <linux/init.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #include <linux/linkage.h> |
| 28 | #include <asm/segment.h> |
Jeremy Fitzhardinge | 0341c14 | 2009-02-13 11:14:01 -0800 | [diff] [blame] | 29 | #include <asm/page_types.h> |
Vivek Goyal | e69f202 | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 30 | #include <asm/boot.h> |
Rusty Russell | a24e785 | 2007-10-21 16:41:35 -0700 | [diff] [blame] | 31 | #include <asm/asm-offsets.h> |
Alexander Kuleshov | fb148d8 | 2015-02-19 13:34:58 +0600 | [diff] [blame] | 32 | #include <asm/bootparam.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
H.J. Lu | 6d92bc9 | 2016-03-16 20:04:35 -0700 | [diff] [blame] | 34 | /* |
| 35 | * The 32-bit x86 assembler in binutils 2.26 will generate R_386_GOT32X |
| 36 | * relocation to get the symbol address in PIC. When the compressed x86 |
| 37 | * kernel isn't built as PIC, the linker optimizes R_386_GOT32X |
| 38 | * relocations to their fixed symbol addresses. However, when the |
| 39 | * compressed x86 kernel is loaded at a different address, it leads |
| 40 | * to the following load failure: |
| 41 | * |
| 42 | * Failed to allocate space for phdrs |
| 43 | * |
| 44 | * during the decompression stage. |
| 45 | * |
| 46 | * If the compressed x86 kernel is relocatable at run-time, it should be |
| 47 | * compiled with -fPIE, instead of -fPIC, if possible and should be built as |
| 48 | * Position Independent Executable (PIE) so that linker won't optimize |
| 49 | * R_386_GOT32X relocation to its fixed symbol address. Older |
| 50 | * linkers generate R_386_32 relocations against locally defined symbols, |
| 51 | * _bss, _ebss, _got and _egot, in PIE. It isn't wrong, just less |
| 52 | * optimal than R_386_RELATIVE. But the x86 kernel fails to properly handle |
| 53 | * R_386_32 relocations when relocating the kernel. To generate |
| 54 | * R_386_RELATIVE relocations, we mark _bss, _ebss, _got and _egot as |
| 55 | * hidden: |
| 56 | */ |
| 57 | .hidden _bss |
| 58 | .hidden _ebss |
| 59 | .hidden _got |
| 60 | .hidden _egot |
| 61 | |
Tim Abbott | 1dc818c | 2009-09-16 16:44:27 -0400 | [diff] [blame] | 62 | __HEAD |
Cyrill Gorcunov | cb425af | 2009-02-14 00:50:23 +0300 | [diff] [blame] | 63 | ENTRY(startup_32) |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 64 | #ifdef CONFIG_EFI_STUB |
Matt Fleming | b199430 | 2012-04-15 16:06:04 +0100 | [diff] [blame] | 65 | jmp preferred_addr |
| 66 | |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 67 | /* |
| 68 | * We don't need the return address, so set up the stack so |
David Woodhouse | 99f857d | 2013-01-10 14:31:59 +0000 | [diff] [blame] | 69 | * efi_main() can find its arguments. |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 70 | */ |
David Woodhouse | 99f857d | 2013-01-10 14:31:59 +0000 | [diff] [blame] | 71 | ENTRY(efi_pe_entry) |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 72 | add $0x4, %esp |
| 73 | |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 74 | call 1f |
| 75 | 1: popl %esi |
| 76 | subl $1b, %esi |
| 77 | |
| 78 | popl %ecx |
| 79 | movl %ecx, efi32_config(%esi) /* Handle */ |
| 80 | popl %ecx |
| 81 | movl %ecx, efi32_config+8(%esi) /* EFI System table pointer */ |
| 82 | |
| 83 | /* Relocate efi_config->call() */ |
| 84 | leal efi32_config(%esi), %eax |
Lukas Wunner | 0a637ee | 2016-08-22 12:01:21 +0200 | [diff] [blame] | 85 | add %esi, 32(%eax) |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 86 | pushl %eax |
| 87 | |
Matt Fleming | 9ca8f72 | 2012-07-19 10:23:48 +0100 | [diff] [blame] | 88 | call make_boot_params |
| 89 | cmpl $0, %eax |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 90 | je fail |
Matt Fleming | 7e8213c | 2014-04-08 13:14:00 +0100 | [diff] [blame] | 91 | movl %esi, BP_code32_start(%eax) |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 92 | popl %ecx |
Matt Fleming | 9ca8f72 | 2012-07-19 10:23:48 +0100 | [diff] [blame] | 93 | pushl %eax |
Matt Fleming | 9ca8f72 | 2012-07-19 10:23:48 +0100 | [diff] [blame] | 94 | pushl %ecx |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 95 | jmp 2f /* Skip efi_config initialization */ |
Matt Fleming | 9ca8f72 | 2012-07-19 10:23:48 +0100 | [diff] [blame] | 96 | |
Matt Fleming | b8ff87a | 2014-01-10 15:54:31 +0000 | [diff] [blame] | 97 | ENTRY(efi32_stub_entry) |
David Woodhouse | f791620 | 2013-01-07 22:01:50 +0000 | [diff] [blame] | 98 | add $0x4, %esp |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 99 | popl %ecx |
| 100 | popl %edx |
| 101 | |
| 102 | call 1f |
| 103 | 1: popl %esi |
| 104 | subl $1b, %esi |
| 105 | |
| 106 | movl %ecx, efi32_config(%esi) /* Handle */ |
| 107 | movl %edx, efi32_config+8(%esi) /* EFI System table pointer */ |
| 108 | |
| 109 | /* Relocate efi_config->call() */ |
| 110 | leal efi32_config(%esi), %eax |
Lukas Wunner | 0a637ee | 2016-08-22 12:01:21 +0200 | [diff] [blame] | 111 | add %esi, 32(%eax) |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 112 | pushl %eax |
| 113 | 2: |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 114 | call efi_main |
| 115 | cmpl $0, %eax |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 116 | movl %eax, %esi |
Matt Fleming | b199430 | 2012-04-15 16:06:04 +0100 | [diff] [blame] | 117 | jne 2f |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 118 | fail: |
Matt Fleming | b199430 | 2012-04-15 16:06:04 +0100 | [diff] [blame] | 119 | /* EFI init failed, so hang. */ |
| 120 | hlt |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 121 | jmp fail |
Matt Fleming | b199430 | 2012-04-15 16:06:04 +0100 | [diff] [blame] | 122 | 2: |
Matt Fleming | 7e8213c | 2014-04-08 13:14:00 +0100 | [diff] [blame] | 123 | movl BP_code32_start(%esi), %eax |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 124 | leal preferred_addr(%eax), %eax |
| 125 | jmp *%eax |
| 126 | |
| 127 | preferred_addr: |
| 128 | #endif |
Eric W. Biederman | bd53147 | 2007-10-26 11:29:04 -0600 | [diff] [blame] | 129 | cld |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 130 | /* |
| 131 | * Test KEEP_SEGMENTS flag to see if the bootloader is asking |
| 132 | * us to not reload segments |
| 133 | */ |
Alexander Kuleshov | fb148d8 | 2015-02-19 13:34:58 +0600 | [diff] [blame] | 134 | testb $KEEP_SEGMENTS, BP_loadflags(%esi) |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 135 | jnz 1f |
Rusty Russell | a24e785 | 2007-10-21 16:41:35 -0700 | [diff] [blame] | 136 | |
Eric W. Biederman | bd53147 | 2007-10-26 11:29:04 -0600 | [diff] [blame] | 137 | cli |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 138 | movl $__BOOT_DS, %eax |
| 139 | movl %eax, %ds |
| 140 | movl %eax, %es |
| 141 | movl %eax, %fs |
| 142 | movl %eax, %gs |
| 143 | movl %eax, %ss |
Eric W. Biederman | bd53147 | 2007-10-26 11:29:04 -0600 | [diff] [blame] | 144 | 1: |
Rusty Russell | a24e785 | 2007-10-21 16:41:35 -0700 | [diff] [blame] | 145 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 146 | /* |
| 147 | * Calculate the delta between where we were compiled to run |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 148 | * at and where we were actually loaded at. This can only be done |
| 149 | * with a short local call on x86. Nothing else will tell us what |
| 150 | * address we are running at. The reserved chunk of the real-mode |
H. Peter Anvin | 85414b6 | 2007-07-11 12:18:33 -0700 | [diff] [blame] | 151 | * data at 0x1e4 (defined as a scratch field) are used as the stack |
| 152 | * for this calculation. Only 4 bytes are needed. |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 153 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 154 | leal (BP_scratch+4)(%esi), %esp |
| 155 | call 1f |
| 156 | 1: popl %ebp |
| 157 | subl $1b, %ebp |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 158 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 159 | /* |
| 160 | * %ebp contains the address we are loaded at by the boot loader and %ebx |
Vivek Goyal | e69f202 | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 161 | * contains the address where we should move the kernel image temporarily |
| 162 | * for safe in-place decompression. |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 163 | */ |
Vivek Goyal | e69f202 | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 164 | |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 165 | #ifdef CONFIG_RELOCATABLE |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 166 | movl %ebp, %ebx |
H. Peter Anvin | 37ba7ab | 2009-05-11 15:56:08 -0700 | [diff] [blame] | 167 | movl BP_kernel_alignment(%esi), %eax |
| 168 | decl %eax |
| 169 | addl %eax, %ebx |
| 170 | notl %eax |
| 171 | andl %eax, %ebx |
Kees Cook | 8ab3820 | 2013-10-10 17:18:14 -0700 | [diff] [blame] | 172 | cmpl $LOAD_PHYSICAL_ADDR, %ebx |
| 173 | jge 1f |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 174 | #endif |
Kees Cook | 8ab3820 | 2013-10-10 17:18:14 -0700 | [diff] [blame] | 175 | movl $LOAD_PHYSICAL_ADDR, %ebx |
| 176 | 1: |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 177 | |
H. Peter Anvin | 02a884c | 2009-05-08 17:42:16 -0700 | [diff] [blame] | 178 | /* Target address to relocate to for decompression */ |
Yinghai Lu | 974f221 | 2016-04-28 17:09:04 -0700 | [diff] [blame] | 179 | movl BP_init_size(%esi), %eax |
| 180 | subl $_end, %eax |
| 181 | addl %eax, %ebx |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 182 | |
H. Peter Anvin | 0a13773 | 2009-05-08 16:27:41 -0700 | [diff] [blame] | 183 | /* Set up the stack */ |
| 184 | leal boot_stack_end(%ebx), %esp |
| 185 | |
H. Peter Anvin | 9754191 | 2009-05-06 17:56:51 -0700 | [diff] [blame] | 186 | /* Zero EFLAGS */ |
| 187 | pushl $0 |
| 188 | popfl |
| 189 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 190 | /* |
| 191 | * Copy the compressed kernel to the end of our buffer |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 192 | * where decompression in place becomes safe. |
| 193 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 194 | pushl %esi |
H. Peter Anvin | 36d3793 | 2009-05-08 16:45:15 -0700 | [diff] [blame] | 195 | leal (_bss-4)(%ebp), %esi |
| 196 | leal (_bss-4)(%ebx), %edi |
H. Peter Anvin | 5b11f1c | 2009-05-08 16:20:34 -0700 | [diff] [blame] | 197 | movl $(_bss - startup_32), %ecx |
H. Peter Anvin | 36d3793 | 2009-05-08 16:45:15 -0700 | [diff] [blame] | 198 | shrl $2, %ecx |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 199 | std |
H. Peter Anvin | 36d3793 | 2009-05-08 16:45:15 -0700 | [diff] [blame] | 200 | rep movsl |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 201 | cld |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 202 | popl %esi |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 203 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 204 | /* |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 205 | * Jump to the relocated address. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 206 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 207 | leal relocated(%ebx), %eax |
| 208 | jmp *%eax |
Cyrill Gorcunov | cb425af | 2009-02-14 00:50:23 +0300 | [diff] [blame] | 209 | ENDPROC(startup_32) |
| 210 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 211 | .text |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 212 | relocated: |
| 213 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | /* |
H. Peter Anvin | 0a13773 | 2009-05-08 16:27:41 -0700 | [diff] [blame] | 215 | * Clear BSS (stack is currently empty) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 216 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 217 | xorl %eax, %eax |
H. Peter Anvin | 5b11f1c | 2009-05-08 16:20:34 -0700 | [diff] [blame] | 218 | leal _bss(%ebx), %edi |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 219 | leal _ebss(%ebx), %ecx |
| 220 | subl %edi, %ecx |
H. Peter Anvin | 36d3793 | 2009-05-08 16:45:15 -0700 | [diff] [blame] | 221 | shrl $2, %ecx |
| 222 | rep stosl |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 223 | |
Linus Torvalds | f367039 | 2014-09-22 23:05:49 -0700 | [diff] [blame] | 224 | /* |
| 225 | * Adjust our own GOT |
| 226 | */ |
| 227 | leal _got(%ebx), %edx |
| 228 | leal _egot(%ebx), %ecx |
| 229 | 1: |
| 230 | cmpl %ecx, %edx |
| 231 | jae 2f |
| 232 | addl %ebx, (%edx) |
| 233 | addl $4, %edx |
| 234 | jmp 1b |
| 235 | 2: |
| 236 | |
H. Peter Anvin | 22a57f5 | 2010-08-02 15:34:44 -0700 | [diff] [blame] | 237 | /* |
Kees Cook | c040288 | 2016-04-18 09:42:13 -0700 | [diff] [blame] | 238 | * Do the extraction, and jump to the new kernel.. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 239 | */ |
Kees Cook | c040288 | 2016-04-18 09:42:13 -0700 | [diff] [blame] | 240 | /* push arguments for extract_kernel: */ |
Junjie Mao | e602336 | 2014-10-31 21:40:38 +0800 | [diff] [blame] | 241 | pushl $z_output_len /* decompressed length, end of relocs */ |
Yinghai Lu | 974f221 | 2016-04-28 17:09:04 -0700 | [diff] [blame] | 242 | |
| 243 | movl BP_init_size(%esi), %eax |
| 244 | subl $_end, %eax |
| 245 | movl %ebx, %ebp |
| 246 | subl %eax, %ebp |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 247 | pushl %ebp /* output address */ |
Yinghai Lu | 974f221 | 2016-04-28 17:09:04 -0700 | [diff] [blame] | 248 | |
H. Peter Anvin | 02a884c | 2009-05-08 17:42:16 -0700 | [diff] [blame] | 249 | pushl $z_input_len /* input_len */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 250 | leal input_data(%ebx), %eax |
| 251 | pushl %eax /* input_data */ |
| 252 | leal boot_heap(%ebx), %eax |
| 253 | pushl %eax /* heap area */ |
| 254 | pushl %esi /* real mode pointer */ |
Kees Cook | c040288 | 2016-04-18 09:42:13 -0700 | [diff] [blame] | 255 | call extract_kernel /* returns kernel location in %eax */ |
Yinghai Lu | 4d2d542 | 2016-04-28 17:09:07 -0700 | [diff] [blame] | 256 | addl $24, %esp |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 257 | |
| 258 | /* |
Kees Cook | c040288 | 2016-04-18 09:42:13 -0700 | [diff] [blame] | 259 | * Jump to the extracted kernel. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 260 | */ |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 261 | xorl %ebx, %ebx |
Kees Cook | 8ab3820 | 2013-10-10 17:18:14 -0700 | [diff] [blame] | 262 | jmp *%eax |
Eric W. Biederman | 968de4f | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 263 | |
Matt Fleming | 9cb0e39 | 2014-09-05 14:52:26 +0100 | [diff] [blame] | 264 | #ifdef CONFIG_EFI_STUB |
Linus Torvalds | f367039 | 2014-09-22 23:05:49 -0700 | [diff] [blame] | 265 | .data |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 266 | efi32_config: |
Lukas Wunner | 0a637ee | 2016-08-22 12:01:21 +0200 | [diff] [blame] | 267 | .fill 4,8,0 |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 268 | .long efi_call_phys |
| 269 | .long 0 |
| 270 | .byte 0 |
Matt Fleming | 3db4caf | 2014-03-05 10:15:55 +0000 | [diff] [blame] | 271 | #endif |
Matt Fleming | 54b52d8 | 2014-01-10 15:27:14 +0000 | [diff] [blame] | 272 | |
H. Peter Anvin | 5f64ec6 | 2009-05-08 15:45:17 -0700 | [diff] [blame] | 273 | /* |
| 274 | * Stack and heap for uncompression |
| 275 | */ |
| 276 | .bss |
| 277 | .balign 4 |
Alexander van Heukelum | 7c53976 | 2008-04-08 12:54:30 +0200 | [diff] [blame] | 278 | boot_heap: |
| 279 | .fill BOOT_HEAP_SIZE, 1, 0 |
| 280 | boot_stack: |
| 281 | .fill BOOT_STACK_SIZE, 1, 0 |
| 282 | boot_stack_end: |