Changeset 59532eb in mainline


Ignore:
Timestamp:
2005-07-20T11:28:16Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f0a8e52
Parents:
7d365305
Message:

Added support for error-word generating exceptions in return routine.

Location:
arch/ia32
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/ia32/Makefile.inc

    r7d365305 r59532eb  
    2222        arch/cpuid.s \
    2323        arch/delay.s \
    24         arch/asm.s \
     24        arch/asm.S \
    2525        arch/proc/scheduler.c \
    2626        arch/acpi/acpi.c \
  • arch/ia32/src/asm.S

    r7d365305 r59532eb  
    2828
    2929## very low and hardware-level functions
     30
     31#define ERROR_WORD_INTERRUPT_LIST 0x00027D00
    3032
    3133.text
     
    112114        pop %ds
    113115
    114         popa
    115         pop %ebp
    116 
     116        mov $\i,%cl;
     117        movl $1,%eax;
     118        test $0xe0,%cl;
     119        jnz 0f;
     120        shl %cl,%eax;
     121        and $ERROR_WORD_INTERRUPT_LIST,%eax;
     122        jnz 0f;
     123
     124        popa;
     125        pop %ebp;
     126        add $4,%esp;
     127        iret;
     128
     1290:
     130
     131        popa
     132        pop %ebp
    117133        iret
    118134
Note: See TracChangeset for help on using the changeset viewer.