Date: Sat, 16 May 2009 12:42:11 GMT From: Arnar Mar Sig <antab@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 162154 for review Message-ID: <200905161242.n4GCgBCc096481@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=162154 Change 162154 by antab@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)help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905161242.n4GCgBCc096481>
