PERFORCE change 162154 for review
Arnar Mar Sig
antab at FreeBSD.org
Sat May 16 12:42:12 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162154
Change 162154 by antab at antab_farm on 2009/05/16 12:41:20
Add parentheses
Affected files ...
.. //depot/projects/avr32/src/sys/avr32/include/pte.h#8 edit
Differences ...
==== //depot/projects/avr32/src/sys/avr32/include/pte.h#8 (text+ko) ====
@@ -44,10 +44,10 @@
#define PTE_PFN (PD_MASK | PT_MASK)
#define PTE_WRITE_THRU bit_offset(SYS, TLBELO, W) /* Write thru */
-#define PTE_PERM_READ 4 << bit_shift(SYS, TLBELO, AP)
-#define PTE_PERM_WRITE 2 << bit_shift(SYS, TLBELO, AP)
+#define PTE_PERM_READ (4 << bit_shift(SYS, TLBELO, AP))
+#define PTE_PERM_WRITE (2 << bit_shift(SYS, TLBELO, AP))
#define PTE_PERM_RW (PTE_PERM_READ | PTE_PERM_WRITE)
-#define PTE_PERM_EXECUTE 1 << bit_shift(SYS, TLBELO, AP)
+#define PTE_PERM_EXECUTE (1 << bit_shift(SYS, TLBELO, AP))
#define PTE_GLOBAL bit_offset(SYS, TLBELO, G)
#define PTE_BUFFERABLE bit_offset(SYS, TLBELO, B) /* Bufferable */
#define PTE_CACHEABLE bit_offset(SYS, TLBELO, C) /* Cacheable */
@@ -63,10 +63,10 @@
/* Page size, not set in PTE, always 4K */
-#define PTE_SIZE_1K 0 << bit_shift(SYS, TLBELO, SZ)
-#define PTE_SIZE_4K 1 << bit_shift(SYS, TLBELO, SZ)
-#define PTE_SIZE_64K 2 << bit_shift(SYS, TLBELO, SZ)
-#define PTE_SIZE_1M 3 << bit_shift(SYS, TLBELO, SZ)
+#define PTE_SIZE_1K (0 << bit_shift(SYS, TLBELO, SZ))
+#define PTE_SIZE_4K (1 << bit_shift(SYS, TLBELO, SZ))
+#define PTE_SIZE_64K (2 << bit_shift(SYS, TLBELO, SZ))
+#define PTE_SIZE_1M (3 << bit_shift(SYS, TLBELO, SZ))
#define pd_index_from_va(va) \
(((uint32_t)va & PD_MASK) >> PD_SHIFT)
More information about the p4-projects
mailing list