Changeset 80c9416 in mainline for kernel/arch/amd64/src/syscall.c


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

Clear RFLAGS_NT upon entering syscall_entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/syscall.c

    r0cd21bf r80c9416  
    6666         * - clear DF so that the string instructions operate in
    6767         *   the right direction
     68         * - clear NT to prevent a #GP should the flag proliferate to an IRET
    6869         */
    69         write_msr(AMD_MSR_SFMASK, RFLAGS_IF | RFLAGS_DF);
     70        write_msr(AMD_MSR_SFMASK, RFLAGS_IF | RFLAGS_DF | RFLAGS_NT);
    7071}
    7172
Note: See TracChangeset for help on using the changeset viewer.