Ignore:
Timestamp:
2018-11-13T20:22:20Z (6 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/ia32/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
     
    9391
    9492        /* Initialize stack pointer */
    95         movl $START_STACK, %esp
     93        movl $bootstack_top, %esp
    9694
    9795        /*
     
    147145
    148146        stack_init:
     147        movl $PA2KA(bootstack_top), %esp
    149148
    150149        /* Create the first stack frame */
     
    300299        movl %edi, kernel_end
    301300        ret
     301
     302// TODO: remove this cruft
    302303
    303304/** Find free 2M (+4k for alignment) region where to store page tables */
Note: See TracChangeset for help on using the changeset viewer.