Ignore:
Timestamp:
Jun 23, 2017, 1:31:23 PM (5 years ago)
Author:
max@…
Message:

Start implementing TLS.

File:
1 edited

Legend:

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

    r35 r46  
    3939        ret
    4040
     41ASM_ENTRY(rdmsr)
     42        movq    %rdi,%rcx
     43        xorq    %rax,%rax
     44        rdmsr
     45        shlq    $32,%rdx
     46        orq     %rdx,%rax
     47        ret
     48
     49ASM_ENTRY(wrmsr)
     50        movq    %rdi,%rcx
     51        movq    %rsi,%rax
     52        movq    %rsi,%rdx
     53        shrq    $32,%rdx
     54        wrmsr
     55        ret
     56
Note: See TracChangeset for help on using the changeset viewer.