mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 14:38:21 +00:00
all: use root boot info pointer
This commit is contained in:
@@ -32,7 +32,7 @@ fn com1_write(c: u8) void {
|
||||
amd64.outb(com1, c);
|
||||
}
|
||||
|
||||
pub fn early_init(boot_info: *r.BootInfo) linksection(r.init) void {
|
||||
pub fn early_init() linksection(r.init) void {
|
||||
com1_init();
|
||||
|
||||
const f = amd64.cpu_features;
|
||||
@@ -58,7 +58,6 @@ pub fn early_init(boot_info: *r.BootInfo) linksection(r.init) void {
|
||||
if (amd64.hypervisor.info) |h| {
|
||||
log.info("running on hypervisor {s}", .{@tagName(h.vendor)});
|
||||
}
|
||||
_ = boot_info;
|
||||
}
|
||||
|
||||
fn init_hypervisor(hv: amd64.hypervisor.Info) void {
|
||||
@@ -79,12 +78,12 @@ pub fn init_ap() void {
|
||||
apic.init_local();
|
||||
}
|
||||
|
||||
pub fn late_init(boot_info: *r.BootInfo) linksection(r.init) void {
|
||||
pub fn late_init() linksection(r.init) void {
|
||||
if (amd64.hypervisor.info) |hv| {
|
||||
init_hypervisor(hv);
|
||||
}
|
||||
|
||||
pl.acpi.init(boot_info);
|
||||
pl.acpi.init();
|
||||
|
||||
tsc.init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user