refactor(amd64): rework MSR handling

This commit is contained in:
Loïc Grégoire
2026-04-14 22:21:36 -04:00
parent ddb1ce185f
commit a34f179d84
3 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ pub fn init() linksection(b.init) void {
const page = mm.phys.alloc();
pvclock = @ptrFromInt(mm.p2v(page));
amd64.wrmsr(.KvmSystemTimeNew, page | 1);
amd64.write_msr(.KvmSystemTimeNew, page | 1);
time_at_boot = read_pvclock();