diff options
Diffstat (limited to 'Kernel/Memory/MappedROM.h')
-rw-r--r-- | Kernel/Memory/MappedROM.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Memory/MappedROM.h b/Kernel/Memory/MappedROM.h index e80870c8f2..486251df5e 100644 --- a/Kernel/Memory/MappedROM.h +++ b/Kernel/Memory/MappedROM.h @@ -14,8 +14,8 @@ namespace Kernel::Memory { class MappedROM { public: - const u8* base() const { return region->vaddr().offset(offset).as_ptr(); } - const u8* end() const { return base() + size; } + u8 const* base() const { return region->vaddr().offset(offset).as_ptr(); } + u8 const* end() const { return base() + size; } OwnPtr<Region> region; size_t size { 0 }; size_t offset { 0 }; @@ -33,7 +33,7 @@ public: return {}; } - PhysicalAddress paddr_of(const u8* ptr) const { return paddr.offset(ptr - this->base()); } + PhysicalAddress paddr_of(u8 const* ptr) const { return paddr.offset(ptr - this->base()); } }; } |