Changeset d029434 in mainline


Ignore:
Timestamp:
2010-07-13T13:56:01Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b62d5614
Parents:
246f939
Message:

Use symbolic representation for selectors.

File:
1 edited

Legend:

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

    r246f939 rd029434  
    227227         * Switch to kernel selectors.
    228228         */
    229         movw $16, %ax
     229        movw $(gdtselector(KDATA_DES)), %ax
    230230        movw %ax, %ds
    231231        movw %ax, %es
     
    308308         * Switch to kernel selectors.
    309309         */
    310         movl $16, %eax
     310        movl $(gdtselector(KDATA_DES)), %eax
    311311        movl %eax, %ds
    312312        movl %eax, %es
     
    417417         * Switch to kernel selectors.
    418418         */
    419         movl $16, %eax
     419        movl $(gdtselector(KDATA_DES)), %eax
    420420        movl %eax, %ds
    421421        movl %eax, %es
     
    426426         */
    427427        xorl %eax, %eax
    428         cmpl $8, ISTATE_OFFSET_CS(%esp)
     428        cmpl $(gdtselector(KTEXT_DES)), ISTATE_OFFSET_CS(%esp)
    429429        cmovnzl %eax, %ebp
    430430
Note: See TracChangeset for help on using the changeset viewer.