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

Function inportd

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

Source from the content-addressed store, hash-verified

25}
26
27uint32_t inportd(uint16_t port){
28 uint32_t value;
29 asm volatile("inl %1, %0" : "=a" (value) : "dN" (port));
30 return value;
31}
32
33void outportl(uint16_t port, uint32_t value){
34 asm volatile ("outl %1, %0" : : "dN" (port), "a" (value));

Callers 1

laihost_indFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected