mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 23:58:21 +00:00
fix(mm): fix PFN conversion
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ pub inline fn page_to_pfn(addr: usize) Pfn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn pfn_to_page(pfn: Pfn) usize {
|
pub inline fn pfn_to_page(pfn: Pfn) usize {
|
||||||
return @intCast(pfn << 12);
|
return @as(usize, pfn) << 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn struct_page_to_pfn(page: *Page) Pfn {
|
pub inline fn struct_page_to_pfn(page: *Page) Pfn {
|
||||||
|
|||||||
Reference in New Issue
Block a user