Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b277bef in mainline


Ignore:
Timestamp:
2018-05-10T07:35:59Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
ae7d03c
Parents:
2f72560a
Message:

Mask TF on SYSCALL

File:
1 edited

Legend:

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

    r2f72560a rb277bef  
    6666         *   the right direction
    6767         * - clear NT to prevent a #GP should the flag proliferate to an IRET
     68         * - clear TF to prevent an immediate #DB if TF is set
    6869         */
    69         write_msr(AMD_MSR_SFMASK, RFLAGS_IF | RFLAGS_DF | RFLAGS_NT);
     70        write_msr(AMD_MSR_SFMASK,
     71            RFLAGS_IF | RFLAGS_DF | RFLAGS_NT | RFLAGS_TF);
    7072}
    7173
Note: See TracChangeset for help on using the changeset viewer.