Ignore:
Timestamp:
Jul 13, 2017, 12:28:37 PM (7 years ago)
Author:
max@…
Message:

add IOC (ATA)

File:
1 edited

Legend:

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

    r166 r195  
    7070        ret
    7171
     72ASM_ENTRY(in16)
     73        movq    %rdi,%rdx
     74        xorq    %rax,%rax
     75        inw     %dx,%ax
     76        ret
     77
    7278ASM_ENTRY(out8)
    7379        movq    %rdi,%rdx
    7480        movq    %rsi,%rax
    7581        outb    %al,%dx
     82        ret
     83
     84ASM_ENTRY(out16)
     85        movq    %rdi,%rdx
     86        movq    %rsi,%rax
     87        outw    %ax,%dx
    7688        ret
    7789
Note: See TracChangeset for help on using the changeset viewer.