From 262aec97aec027c72abb41d091a744e791f142c1 Mon Sep 17 00:00:00 2001 From: travis-update-bot Date: Wed, 30 Dec 2015 23:07:52 +0000 Subject: [PATCH] Update blog to 9bad9020f65fe9e3de6c83492c694d2937ba2e10 --- _posts/2015-12-09-modifying-page-tables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2015-12-09-modifying-page-tables.md b/_posts/2015-12-09-modifying-page-tables.md index 6de3f973..7c21741d 100644 --- a/_posts/2015-12-09-modifying-page-tables.md +++ b/_posts/2015-12-09-modifying-page-tables.md @@ -458,7 +458,7 @@ pub fn translate(virtual_address: VirtualAddress) -> Option { It uses two functions we haven't defined yet: `translate_page` and `Page::containing_address`. Let's start with the latter: ```rust -fn containing_address(address: VirtualAddress) -> Page { +pub fn containing_address(address: VirtualAddress) -> Page { assert!(address < 0x0000_8000_0000_0000 || address >= 0xffff_8000_0000_0000, "invalid address: 0x{:x}", address); Page { number: address / PAGE_SIZE }