Changeset 246f939 in mainline for kernel/arch/ia32/src/asm.S


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

Allocate space for the fake error word and the istate structre at once, saving thus one PUSH instruction.

File:
1 edited

Legend:

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

    r80c9416 r246f939  
    372372                .if (1 << \i) & ERROR_WORD_INTERRUPT_LIST
    373373                        /*
    374                          * Exception with error word: do nothing
     374                         * Exception with error word.
    375375                         */
     376                        subl $ISTATE_SOFT_SIZE, %esp
    376377                .else
    377378                        /*
    378379                         * Exception without error word: fake up one
    379380                         */
    380                         pushl $0
     381                        subl $(ISTATE_SOFT_SIZE + 4), %esp
    381382                .endif
    382383        .else
    383384                /*
    384                  * Interrupt: fake up one
     385                 * Interrupt: fake up an error word
    385386                 */
    386                 pushl $0
     387                subl $(ISTATE_SOFT_SIZE + 4), %esp
    387388        .endif
    388        
    389         subl $ISTATE_SOFT_SIZE, %esp
    390389       
    391390        /*
Note: See TracChangeset for help on using the changeset viewer.