aboutsummaryrefslogtreecommitdiff
path: root/src/real_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-05-22 05:39:00 +0000
committeriximeow <me@iximeow.net>2026-05-25 01:47:55 +0000
commit41e6fb71ab86cdd7007ac72ec9cb2499439037ae (patch)
tree6096880da869defef172dfa7916f1321b01fb34e /src/real_mode/mod.rs
parentf900cfe558b97d187226c6e0791ad8992ba8f4a0 (diff)
helpers to create cr0-cr7
Diffstat (limited to 'src/real_mode/mod.rs')
-rw-r--r--src/real_mode/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs
index 6c7365c..89b1162 100644
--- a/src/real_mode/mod.rs
+++ b/src/real_mode/mod.rs
@@ -248,6 +248,11 @@ impl RegSpec {
ah => 4, ch => 5, dh => 6, bh => 7
);
+ register!(CR,
+ cr0 => 0, cr1 => 1, cr2 => 2, cr3 => 3,
+ cr4 => 4, cr5 => 5, cr6 => 6, cr7 => 7
+ );
+
#[inline]
pub const fn zmm0() -> RegSpec {
RegSpec { bank: RegisterBank::Z, num: 0 }