mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Kernel: Oops, we need to use map_typed_writable() for write access :^)
This commit is contained in:
parent
a04c8d7101
commit
59a56a78c0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue