daily pastebin goal
31%
SHARE
TWEET

test_bit.c

a guest Nov 19th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include "va_space.h"
  3. #include "va_space.c"
  4.  
  5. int main()
  6. {
  7. /*create a page table*/
  8. page_table table;
  9.  
  10. /*clear the table that we just created*/
  11. pt_init(table);
  12.  
  13. /*display the table*/
  14. pt_display(table);
  15.  
  16. /*define the page_num for the index*/
  17. pt_index page_num = 0x8e;
  18.  
  19. /*set dirty bit*/
  20. pt_set_dirty(table, page_num);
  21.  
  22.  
  23. /*display entries*/
  24. pt_display_entry(table, 0x8e);
  25.  
  26. /*display table one more time*/
  27. pt_display(table);
  28.  
  29. return 0;
  30. }
RAW Paste Data
Top