SHARE
TWEET

Untitled

a guest Jun 15th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pub fn map_dir_entry(dir: *Directory, page: u32, phys_addr: u10) void {
  2.     var entry: *DirectoryEntry = &dir.entries[page];
  3.     entry.accessed = false;
  4.     entry.caching_disabled = false;
  5.     entry.four_megabyte_pages = true;
  6.     entry.available = 0;
  7.     entry.present = true;
  8.     entry.user_level = false;
  9.     entry.writable = true;
  10.     entry.write_through = true;
  11.     entry.zero = 0;
  12.     entry.page_phys_addr = phys_addr;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top