MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / inportw

Function inportw

Kernel/src/arch/x86_64/system.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17uint16_t inportw(uint16_t port){
18 uint16_t value;
19 asm volatile("inw %1, %0" : "=a" (value) : "dN" (port));
20 return value;
21}
22
23void outportd(uint16_t port, uint32_t value){
24 asm volatile ("outl %1, %0" : : "dN" (port), "a" (value));

Callers 2

laihost_inwFunction · 0.85
InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected