mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 07:18:22 +00:00
style: rename kind to type
This commit is contained in:
@@ -41,7 +41,7 @@ pub const BootInfo = struct {
|
||||
pub const MemMap = struct {
|
||||
/// A memory map entry.
|
||||
pub const Entry = struct {
|
||||
pub const Kind = enum {
|
||||
pub const Type = enum {
|
||||
Free,
|
||||
Reserved,
|
||||
LoaderReclaimable,
|
||||
@@ -50,7 +50,7 @@ pub const BootInfo = struct {
|
||||
Kernel,
|
||||
};
|
||||
|
||||
kind: Kind,
|
||||
type: Type,
|
||||
base: usize,
|
||||
size: usize,
|
||||
};
|
||||
|
||||
@@ -81,7 +81,7 @@ pub fn early_init() linksection(b.init) void {
|
||||
global_state.boot_info.memory_map.entry_count = 1;
|
||||
global_state.boot_info.memory_map.entries[0].base = phys_base;
|
||||
global_state.boot_info.memory_map.entries[0].size = global_state.params.mem_size;
|
||||
global_state.boot_info.memory_map.entries[0].kind = .Free;
|
||||
global_state.boot_info.memory_map.entries[0].type = .Free;
|
||||
|
||||
global_state.phys_memory_memfd = memfd;
|
||||
global_state.phys_base = phys_base;
|
||||
|
||||
Reference in New Issue
Block a user