Changeset 156bae23 in mainline
- Timestamp:
- 2018-11-13T20:22:20Z (6 years ago)
- Children:
- 87db879
- Parents:
- 6e5252a
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-24 00:27:26)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:22:20)
- Location:
- kernel/arch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/_link.ld.in
r6e5252a r156bae23 42 42 } :unmapped 43 43 44 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped)) : AT (BOOT_OFFSET + SIZEOF(.unmapped)) { 44 .unmapped_bss : { 45 *(.bootstack); 46 } :unmapped 47 48 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) : AT (BOOT_OFFSET + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) { 45 49 ktext_start = .; 46 50 *(.text .text.*); -
kernel/arch/amd64/src/asm.S
r6e5252a r156bae23 34 34 #include <arch/cpu.h> 35 35 #include <arch/smp/apic.h> 36 #include <arch/boot/boot.h> 37 38 .section .bootstack, "a", @nobits 39 .align 16 40 SYMBOL(bootstack_bottom) 41 .skip BOOT_STACK_SIZE 42 SYMBOL(bootstack_top) 36 43 37 44 .text -
kernel/arch/amd64/src/boot/multiboot.S
r6e5252a r156bae23 44 44 // the image to get very early debug output. 45 45 46 #define START_STACK (BOOT_OFFSET - BOOT_STACK_SIZE)47 48 46 .section .multiboot, "a" 49 47 … … 99 97 100 98 /* Initialize stack pointer */ 101 movl $ START_STACK, %esp99 movl $bootstack_top, %esp 102 100 103 101 /* … … 436 434 */ 437 435 438 movq $(PA2KA( START_STACK)), %rsp436 movq $(PA2KA(bootstack_top)), %rsp 439 437 440 438 /* Create the first stack frame */ -
kernel/arch/ia32/_link.ld.in
r6e5252a r156bae23 41 41 } :unmapped 42 42 43 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped)): AT (BOOT_OFFSET + SIZEOF(.unmapped)) { 43 .unmapped_bss : { 44 *(.bootstack); 45 } :unmapped 46 47 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)): AT (BOOT_OFFSET + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) { 44 48 ktext_start = .; 45 49 *(.text .text.*); -
kernel/arch/ia32/src/asm.S
r6e5252a r156bae23 37 37 #include <arch/istate_struct.h> 38 38 #include <arch/smp/apic.h> 39 #include <arch/boot/boot.h> 40 41 .section .bootstack, "a", @nobits 42 .align 16 43 SYMBOL(bootstack_bottom) 44 .skip BOOT_STACK_SIZE 45 SYMBOL(bootstack_top) 39 46 40 47 .text -
kernel/arch/ia32/src/boot/multiboot.S
r6e5252a r156bae23 44 44 // the image to get very early debug output. 45 45 46 #define START_STACK (BOOT_OFFSET - BOOT_STACK_SIZE)47 48 46 .section .multiboot, "a" 49 47 … … 93 91 94 92 /* Initialize stack pointer */ 95 movl $ START_STACK, %esp93 movl $bootstack_top, %esp 96 94 97 95 /* … … 147 145 148 146 stack_init: 147 movl $PA2KA(bootstack_top), %esp 149 148 150 149 /* Create the first stack frame */ … … 300 299 movl %edi, kernel_end 301 300 ret 301 302 // TODO: remove this cruft 302 303 303 304 /** Find free 2M (+4k for alignment) region where to store page tables */
Note:
See TracChangeset
for help on using the changeset viewer.