aboutsummaryrefslogtreecommitdiff
path: root/src/controlregs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controlregs.rs')
-rw-r--r--src/controlregs.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/controlregs.rs b/src/controlregs.rs
index b6cd334..c243caf 100644
--- a/src/controlregs.rs
+++ b/src/controlregs.rs
@@ -1,15 +1,13 @@
//! Functions to read and write control registers.
-pub unsafe fn cr0() -> u64
-{
+pub unsafe fn cr0() -> u64 {
let ret: u64;
asm!("mov %cr0, $0" : "=r" (ret));
ret
}
/// Write cr0.
-pub unsafe fn cr0_write(val: u64)
-{
+pub unsafe fn cr0_write(val: u64) {
asm!("mov $0, %cr0" :: "r" (val) : "memory");
}