Changeset f476e76 in mainline for kernel/arch/ia32/src/boot/boot.S


Ignore:
Timestamp:
2006-07-24T12:24:19Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d227101
Parents:
0356274
Message:

unify bootstrapping

File:
1 edited

Legend:

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

    r0356274 rf476e76  
    3737.section K_TEXT_START, "ax"
    3838
    39 KTEXT=8
    40 KDATA=16
    41 
    4239.code32
    4340.align 4
     
    5754        lgdt KA2PA(bootstrap_gdtr)              # initialize Global Descriptor Table register
    5855
    59         movw $KDATA, %cx
     56        movw $selector(KDATA_DES), %cx
    6057        movw %cx, %es
    6158        movw %cx, %fs
     
    6461        movw %cx, %ss
    6562       
    66         jmpl $KTEXT, $multiboot_meeting_point
     63        jmpl $selector(KTEXT_DES), $multiboot_meeting_point
    6764        multiboot_meeting_point:
    6865       
     
    3853829:
    386383       
    387         ljmpl $KTEXT, $(vesa_init_protect - vesa_init + VESA_INIT_SEGMENT << 4)
     384        ljmpl $selector(KTEXT_DES), $(vesa_init_protect - vesa_init + VESA_INIT_SEGMENT << 4)
    388385
    3893860:# No prefered mode found
     
    412409        popl %esp
    413410
    414         movw $KDATA, %cx
     411        movw $selector(KDATA_DES), %cx
    415412        movw %cx, %es
    416413        movw %cx, %fs
     
    419416        movw %cx, %ss
    420417       
    421         jmpl $KTEXT, $vesa_meeting_point
     418        jmpl $selector(KTEXT_DES), $vesa_meeting_point
    422419
    423420.align 4
Note: See TracChangeset for help on using the changeset viewer.