diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-15 05:05:25 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-15 05:05:25 +0000 |
commit | cdd0a5dfdb93f6a42f00b7d86648977a4f47b16b (patch) | |
tree | 90726f85a0b1c688e0579c3669b65e43fc6e5d62 /sys/arch | |
parent | d155b5b226f056026cee7d63493de4034e942a40 (diff) |
fully parenthesize the PMAP_DIRECT_* macros
ok tedu@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/include/pmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h index 01554587cdb..81d672392e8 100644 --- a/sys/arch/amd64/include/pmap.h +++ b/sys/arch/amd64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.50 2014/12/15 04:54:44 tedu Exp $ */ +/* $OpenBSD: pmap.h,v 1.51 2014/12/15 05:05:24 guenther Exp $ */ /* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */ /* @@ -525,8 +525,8 @@ kvtopte(vaddr_t va) return (PTE_BASE + pl1_i(va)); } -#define PMAP_DIRECT_MAP(pa) ((vaddr_t)PMAP_DIRECT_BASE + pa) -#define PMAP_DIRECT_UNMAP(va) ((paddr_t)va - PMAP_DIRECT_BASE) +#define PMAP_DIRECT_MAP(pa) ((vaddr_t)PMAP_DIRECT_BASE + (pa)) +#define PMAP_DIRECT_UNMAP(va) ((paddr_t)(va) - PMAP_DIRECT_BASE) #define pmap_map_direct(pg) PMAP_DIRECT_MAP(VM_PAGE_TO_PHYS(pg)) #define pmap_unmap_direct(va) PHYS_TO_VM_PAGE(PMAP_DIRECT_UNMAP(va)) |