Changeset 229d5fc1 in mainline


Ignore:
Timestamp:
2005-08-28T20:54:41Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b52da8d7
Parents:
15bfc78
Message:

Initialize the stack prior to using it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/boot/boot.S

    r15bfc78 r229d5fc1  
    4141kernel_image_start:
    4242        cli
    43         call memmap_arch_init
    4443        xorw %ax,%ax
    4544        movw %ax,%ds
     45        movw %ax,%ss                    # initialize stack segment register
     46        movl $0x7c00,%esp               # initialize stack pointer
     47       
     48        call memmap_arch_init
     49       
    4650        lgdt gdtr
    4751        movl %cr0,%eax
     
    5862        movw %ax,%ds                    # kernel data + stack
    5963        movw %ax,%ss
    60         movl $0x7c00,%esp
    6164
    6265        lidt idtr
Note: See TracChangeset for help on using the changeset viewer.