From 50bd6e37219fd6dabee4f661ed3530c0331c7b06 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 2 Jun 2021 00:11:49 +0200 Subject: added doc --- src/x86_64.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/x86_64.rs') diff --git a/src/x86_64.rs b/src/x86_64.rs index 978bd84..c16a6ad 100644 --- a/src/x86_64.rs +++ b/src/x86_64.rs @@ -1,3 +1,5 @@ +//! `x86_64` flags and bitfields. + /* Rflags Register */ /// Carry flag. @@ -125,6 +127,12 @@ pub const CR4_LA57: u64 = 1 << 5; /* Extended Feature Enable Register (EFER) */ +/// Extended Feature Enable Register MSR number. +/// +/// MSR number used with the [`rdmsr`][msr] and [`wrmsr`][msr] instructions to read/write the +/// `EFER` model specific register. +/// +/// [msr]: https://johannst.github.io/notes/arch/x86_64.html#model-specific-register-msr pub const MSR_EFER: u64 = 0xc000_0080; /// Long Mode Enable. -- cgit v1.2.3