From 30f3afdfc6e9c1f090a50a45c278affe8697cc25 Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Fri, 19 Jun 2020 16:13:08 +0100 Subject: [PATCH] Correct Cr2::read documentation (#161) The documentation on Cr2::read refered to the Cr3 register --- src/registers/control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registers/control.rs b/src/registers/control.rs index 99446a241..3a559c31c 100644 --- a/src/registers/control.rs +++ b/src/registers/control.rs @@ -210,7 +210,7 @@ mod x86_64 { } impl Cr2 { - /// Read the current page fault linear address from the CR3 register. + /// Read the current page fault linear address from the CR2 register. #[inline] pub fn read() -> VirtAddr { let value: u64;