Ignore:
Timestamp:
Aug 1, 2017, 10:37:06 AM (5 years ago)
Author:
max@…
Message:

Add clts/stts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_cpu.S

    r236 r309  
    157157        ret
    158158
     159ASM_ENTRY(clts)
     160        clts
     161        ret
     162
     163ASM_ENTRY(stts)
     164        movq    %cr0,%rax
     165        orq     $CR0_TS,%rax
     166        movq    %rax,%cr0
     167        ret
     168
    159169ASM_ENTRY(x86_stop) /* debug only */
    160170        int     $0x0b
Note: See TracChangeset for help on using the changeset viewer.