Changeset 97b64c9 in mainline for arch/ia32/src/asm.S


Ignore:
Timestamp:
2006-03-15T12:29:52Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8973c00
Parents:
8965838e
Message:

Fix bug in ia32 interrupt handlers.
Handlers for interrupts greater than 31 wrapped the shift around and thus failed to correctly identify
the need to emulate error word.

File:
1 edited

Legend:

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

    r8965838e r97b64c9  
    8181        push %eax
    8282
    83         # Test if this is interrupt with error word or not
    84         movl $(1<<\i), %eax
     83        /*
     84         * Test if this is interrupt with error word or not.
     85         * Be careful about width of the shift.
     86         */
     87        .iflt \i-32
     88                movl $(1<<\i), %eax
     89        .else
     90                movl $0, %eax
     91        .endif
    8592        andl $ERROR_WORD_INTERRUPT_LIST,%eax
    8693
Note: See TracChangeset for help on using the changeset viewer.