diff options
Diffstat (limited to '410kern/x86/page.h')
| -rw-r--r-- | 410kern/x86/page.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/410kern/x86/page.h b/410kern/x86/page.h new file mode 100644 index 0000000..6a0f133 --- /dev/null +++ b/410kern/x86/page.h @@ -0,0 +1,20 @@ +/* + * page.h + * Created for use in 15-410 at CMU + * Joey Echeverria (jge) + */ + +#ifndef _PAGE_H_ +#define _PAGE_H_ + +/* Pages are 4K */ + +#ifndef PAGE_SHIFT +#define PAGE_SHIFT 12 +#endif + +#ifndef PAGE_SIZE +#define PAGE_SIZE (1 << PAGE_SHIFT) +#endif + +#endif /* _PAGE_H_ */ |
