diff --git a/Kernel/Memory/TypedMapping.h b/Kernel/Memory/TypedMapping.h index 10dbd9ecf2..f1dd584aef 100644 --- a/Kernel/Memory/TypedMapping.h +++ b/Kernel/Memory/TypedMapping.h @@ -15,6 +15,7 @@ template struct TypedMapping { const T* ptr() const { return reinterpret_cast(region->vaddr().offset(offset).as_ptr()); } T* ptr() { return reinterpret_cast(region->vaddr().offset(offset).as_ptr()); } + VirtualAddress base_address() const { return region->vaddr().offset(offset); } const T* operator->() const { return ptr(); } T* operator->() { return ptr(); } const T& operator*() const { return *ptr(); }