diff options
Diffstat (limited to 'include/apos/mem.h')
| -rw-r--r-- | include/apos/mem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/apos/mem.h b/include/apos/mem.h index be44104..ece8ee3 100644 --- a/include/apos/mem.h +++ b/include/apos/mem.h @@ -35,8 +35,8 @@ #define __page(x) ((x) / BASE_PAGE_SIZE) #define __addr(x) ((x)*BASE_PAGE_SIZE) #define __pages(x) \ - (aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \ - __page((x) + BASE_PAGE_SIZE)) + (is_aligned((x), BASE_PAGE_SIZE) ? __page((x)) : \ + __page((x) + BASE_PAGE_SIZE)) #define __bytes(x) (__addr(x)) extern size_t __mm_shifts[10]; |
