Changeset efbd094 in mainline


Ignore:
Timestamp:
2010-07-12T16:14:14Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b539f54
Parents:
f4946de
Message:

No need to clear the NT flag before IRET if the kernel never sets it to one
itself. The invocation via a trap/interrupt gate will clear it automatically.

File:
1 edited

Legend:

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

    rf4946de refbd094  
    146146        wrmsr
    147147        ret
    148 
    149 /** Clear nested flag
    150  *
    151  */
    152 .macro CLEAR_NT_FLAG
    153         pushfl
    154         andl $0xffffbfff, (%esp)
    155         popfl
    156 .endm
    157148
    158149#define ISTATE_OFFSET_EDX         0
     
    317308        call syscall_handler
    318309                       
    319         CLEAR_NT_FLAG
    320 
    321310        /*
    322311         * Restore the selector registers.
     
    442431                addl $8, %esp  /* clear arguments from the stack */
    443432               
    444                 CLEAR_NT_FLAG
    445                
    446433                /*
    447434                 * Restore the selector registers.
Note: See TracChangeset for help on using the changeset viewer.