mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
parent
3344f91fc4
commit
4499b0418c
Notes:
sideshowbarker
2024-07-18 11:08:09 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/4499b0418c1 Pull-request: https://github.com/SerenityOS/serenity/pull/8241 Issue: https://github.com/SerenityOS/serenity/issues/6948 Issue: https://github.com/SerenityOS/serenity/issues/7445 Issue: https://github.com/SerenityOS/serenity/issues/8331 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ template<typename T>
|
|||
static TypedMapping<T> map_typed(PhysicalAddress paddr, size_t length, Region::Access access = Region::Access::Read)
|
||||
{
|
||||
TypedMapping<T> table;
|
||||
table.region = MM.allocate_kernel_region(paddr.page_base(), page_round_up(length), {}, access);
|
||||
size_t mapping_length = page_round_up(paddr.offset_in_page() + length);
|
||||
table.region = MM.allocate_kernel_region(paddr.page_base(), mapping_length, {}, access);
|
||||
table.offset = paddr.offset_in_page();
|
||||
return table;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue