1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

Kernel: Oops, we need to use map_typed_writable() for write access :^)

This commit is contained in:
Andreas Kling 2020-05-23 15:50:50 +02:00
parent a04c8d7101
commit 59a56a78c0

View file

@ -116,7 +116,7 @@ static void set_base(const PhysicalAddress& base)
static void write_register(u32 offset, u32 value)
{
*map_typed<u32>(g_apic_base.offset(offset)) = value;
*map_typed_writable<u32>(g_apic_base.offset(offset)) = value;
}
static u32 read_register(u32 offset)