Reduce Hurl.map() template overhead
This commit is contained in:
parent
7b09c9beed
commit
f5e5c40c12
@ -220,7 +220,7 @@ struct Hurl
|
||||
Klog.writefln("Kernel size: %uKB", (LinkerAddresses.hulk_binary_size + LinkerAddresses.hulk_bss_size + header.stack_size) >> 10u);
|
||||
}
|
||||
|
||||
public static void map(T, U)(T virtual, U physical, ulong flags)
|
||||
public static void map(ulong virtual, ulong physical, ulong flags)
|
||||
{
|
||||
PageTable * pt = m_pt_base;
|
||||
for (size_t level = 0; level < 4u; level++)
|
||||
@ -247,6 +247,11 @@ struct Hurl
|
||||
}
|
||||
}
|
||||
|
||||
public static void map(T, U)(T virtual, U physical, ulong flags)
|
||||
{
|
||||
map(cast(ulong)virtual, cast(ulong)physical, flags);
|
||||
}
|
||||
|
||||
public static void map_range(size_t virtual, size_t physical, size_t length, ulong flags)
|
||||
{
|
||||
size_t end = virtual + length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user