Rename translationLevel to TranslationLevel
This commit is contained in:
@@ -6,9 +6,9 @@ const PhysicalAddress = mem.PhysicalAddress;
|
||||
pub const KERNEL_VIRTUAL_BASE: usize = 0xFFFFFF8000000000;
|
||||
pub const KERNEL_L1_INDEX: usize = L1.index(KERNEL_VIRTUAL_BASE);
|
||||
|
||||
pub const L1 = mem.translationLevel(30);
|
||||
pub const L2 = mem.translationLevel(21);
|
||||
pub const L3 = mem.translationLevel(12);
|
||||
pub const L1 = mem.TranslationLevel(30);
|
||||
pub const L2 = mem.TranslationLevel(21);
|
||||
pub const L3 = mem.TranslationLevel(12);
|
||||
|
||||
pub const RawEntry = packed struct(u64) {
|
||||
// 0
|
||||
|
||||
@@ -10,9 +10,9 @@ pub const KERNEL_VIRTUAL_L1I: usize = (KERNEL_VIRTUAL_BASE >> L1.SHIFT) & 511;
|
||||
// 16 GiB
|
||||
const EARLY_MAPPING_SIZE: usize = 16;
|
||||
|
||||
pub const L1 = mem.translationLevel(30);
|
||||
pub const L2 = mem.translationLevel(21);
|
||||
pub const L3 = mem.translationLevel(12);
|
||||
pub const L1 = mem.TranslationLevel(30);
|
||||
pub const L2 = mem.TranslationLevel(21);
|
||||
pub const L3 = mem.TranslationLevel(12);
|
||||
|
||||
pub const RawEntry = packed struct(u64) {
|
||||
// 0: Valid
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ const std = @import("std");
|
||||
pub const vmm = @import("mem/vmm.zig");
|
||||
pub const phys = @import("mem/phys.zig");
|
||||
|
||||
pub const translationLevel = vmm.translationLevel;
|
||||
pub const TranslationLevel = vmm.TranslationLevel;
|
||||
|
||||
pub const PhysicalAddress = packed struct(u64) {
|
||||
raw: u64,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
pub fn translationLevel(comptime shift: usize) type {
|
||||
pub fn TranslationLevel(comptime shift: usize) type {
|
||||
return struct {
|
||||
pub const SHIFT: usize = shift;
|
||||
pub const SIZE: usize = 1 << shift;
|
||||
|
||||
Reference in New Issue
Block a user