Rev 2106 | Rev 3908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2106 | Rev 3233 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | 37 | ||
| 38 | #include <arch/types.h> |
38 | #include <arch/types.h> |
| 39 | #include <mm/as.h> |
39 | #include <mm/as.h> |
| 40 | #include <memstr.h> |
40 | #include <memstr.h> |
| 41 | 41 | ||
| 42 | /** |
- | |
| 43 | * Macro for computing page color. |
- | |
| 44 | */ |
- | |
| 45 | #define PAGE_COLOR(va) (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1)) |
- | |
| 46 | - | ||
| 47 | /** Operations to manipulate page mappings. */ |
42 | /** Operations to manipulate page mappings. */ |
| 48 | typedef struct { |
43 | typedef struct { |
| 49 | void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame, |
44 | void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame, |
| 50 | int flags); |
45 | int flags); |
| 51 | void (* mapping_remove)(as_t *as, uintptr_t page); |
46 | void (* mapping_remove)(as_t *as, uintptr_t page); |