Changeset 309


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

Add clts/stts.

Location:
trunk/hal/x86_64/core
Files:
3 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
  • trunk/hal/x86_64/core/hal_internal.h

    r290 r309  
    5656void tlbflushg();
    5757void tlbflush();
     58void clts();
     59void stts();
    5860void pause();
    5961void wbinvd();
  • trunk/hal/x86_64/core/hal_special.c

    r280 r309  
    8888{
    8989        x86_panic((char *)__func__);
     90        clts();
    9091}
    9192
     
    9394{
    9495        x86_panic((char *)__func__);
     96        stts();
    9597}
    9698
Note: See TracChangeset for help on using the changeset viewer.