Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2018-11-13T20:22:20Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Allocate boot stack properly on x86

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/boot/multiboot.S

    r6e5252a r156bae23  
    4444//       the image to get very early debug output.
    4545
    46 #define START_STACK  (BOOT_OFFSET - BOOT_STACK_SIZE)
    47 
    4846.section .multiboot, "a"
    4947
     
    9997
    10098        /* Initialize stack pointer */
    101         movl $START_STACK, %esp
     99        movl $bootstack_top, %esp
    102100
    103101        /*
     
    436434         */
    437435
    438         movq $(PA2KA(START_STACK)), %rsp
     436        movq $(PA2KA(bootstack_top)), %rsp
    439437
    440438        /* Create the first stack frame */
Note: See TracChangeset for help on using the changeset viewer.