|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "common/stdint.h"Go to the source code of this file.
Macros | |
| #define | PAGE_SHIFT 12u |
| page size and alignment helpers: the one definition of PAGE_SIZE. | |
| #define | PAGE_SIZE (1u << PAGE_SHIFT) |
| #define | PAGE_OFFSET_MASK (PAGE_SIZE - 1u) |
| #define | PAGE_ALIGN_DOWN(x) |
| #define | PAGE_ALIGN_UP(x) |
| #define | PAGE_IS_ALIGNED(x) |
| #define | PAGE_COUNT(bytes) |
| #define PAGE_SHIFT 12u |
page size and alignment helpers: the one definition of PAGE_SIZE.
the hardware page is 4 KiB on both i686 and x86_64.
| #define PAGE_SIZE (1u << PAGE_SHIFT) |
| #define PAGE_OFFSET_MASK (PAGE_SIZE - 1u) |
| #define PAGE_ALIGN_DOWN | ( | x | ) |
| #define PAGE_ALIGN_UP | ( | x | ) |
| #define PAGE_IS_ALIGNED | ( | x | ) |
| #define PAGE_COUNT | ( | bytes | ) |