diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-07 15:31:14 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-07 15:31:14 +0000 |
commit | 361e3cf9abc3f9abe09c72570cc51d6e92e61c83 (patch) | |
tree | 224a26f2b92aac8a2a120c556a77195b52644d01 /sys/arch/arm | |
parent | f87a9262d6a4eeb8ead83cff1dbcf678f4fc4bce (diff) |
Fix the definition of L1_S_V7_AP().
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/include/pte.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/include/pte.h b/sys/arch/arm/include/pte.h index 708ec9797cd..b4deeb13f09 100644 --- a/sys/arch/arm/include/pte.h +++ b/sys/arch/arm/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.2 2009/05/24 04:56:19 drahn Exp $ */ +/* $OpenBSD: pte.h,v 1.3 2011/11/07 15:31:13 miod Exp $ */ /* $NetBSD: pte.h,v 1.6 2003/04/18 11:08:28 scw Exp $ */ /* @@ -154,7 +154,7 @@ typedef uint32_t pt_entry_t; /* L2 table entry */ #define L1_S_V7_nG(x) ((x) << 12) /* */ #define L1_S_V7_S(x) ((x) << 12) /* */ #define L1_S_V7_S(x) ((x) << 12) /* */ -#define L1_S_V7_AP(x) (((x << 13) & 0x4) | ((x) << 10 & 3)) /* AP*/ +#define L1_S_V7_AP(x) ((((x) & 0x4) << 13) | (((x) & 3) << 10)) /* AP */ #define L1_S_V7_XN(x) ((x) << 4) /* */ /* L1 Coarse Descriptor */ |