kern: implement enough of KPageTable to initialize a thread
This commit is contained in:
@@ -27,6 +27,10 @@ namespace ams::kern {
|
||||
std::memset(buffer, 0, sizeof(buffer));
|
||||
}
|
||||
|
||||
ALWAYS_INLINE KPhysicalAddress GetPhysicalAddress() const {
|
||||
return KMemoryLayout::GetLinearPhysicalAddress(KVirtualAddress(this));
|
||||
}
|
||||
|
||||
static ALWAYS_INLINE KPageBuffer *FromPhysicalAddress(KPhysicalAddress phys_addr) {
|
||||
const KVirtualAddress virt_addr = KMemoryLayout::GetLinearVirtualAddress(phys_addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user