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

Function GetIOMapping

Kernel/src/arch/x86_64/paging.cpp:565–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563 }
564
565 uintptr_t GetIOMapping(uintptr_t addr){
566 if(addr > 0xffffffff){ // Typically most MMIO will not reside > 4GB, but check just in case
567 Log::Error("MMIO >4GB current unsupported");
568 return 0xffffffff;
569 }
570
571 return addr + IO_VIRTUAL_BASE;
572 }
573
574 void ChangeAddressSpace(address_space_t* addressSpace){
575 currentAddressSpace = addressSpace;

Callers 11

FindSDTFunction · 0.85
InitFunction · 0.85
InitializeFunction · 0.85
InitCoreFunction · 0.85
PortMethod · 0.85
InitFunction · 0.85
ATADiskDeviceMethod · 0.85
InitializeRxMethod · 0.85
InitializeTxMethod · 0.85
Intel8254xMethod · 0.85
XHCIControllerMethod · 0.85

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected