mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 15:48:21 +00:00
fix(amd64): fix wrong layout for cr0
This commit is contained in:
@@ -243,7 +243,7 @@ pub const Cr0 = packed struct(u64) {
|
|||||||
ts: bool,
|
ts: bool,
|
||||||
et: bool,
|
et: bool,
|
||||||
ne: bool,
|
ne: bool,
|
||||||
reserved0: u11,
|
reserved0: u10,
|
||||||
wp: bool,
|
wp: bool,
|
||||||
reserved1: u1,
|
reserved1: u1,
|
||||||
am: bool,
|
am: bool,
|
||||||
@@ -251,7 +251,7 @@ pub const Cr0 = packed struct(u64) {
|
|||||||
nw: bool,
|
nw: bool,
|
||||||
cd: bool,
|
cd: bool,
|
||||||
pg: bool,
|
pg: bool,
|
||||||
reserved3: u31,
|
reserved3: u32,
|
||||||
};
|
};
|
||||||
|
|
||||||
comptime {
|
comptime {
|
||||||
|
|||||||
Reference in New Issue
Block a user