diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-02-16 12:33:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-02-16 12:33:23 +0000 |
commit | 11c6522fa0bc4270221b9d632cdcd8f1d58d2512 (patch) | |
tree | 9d1499c4289774a7bdf762ecf45e5caa5d253462 /sys/arch/arm64/include/pte.h | |
parent | 1d7aedfe1f364b32777f615944a46ebaa0be3764 (diff) |
Introduce BUS_SPACE_MAP_POSTED such that we can distinguish between
posted and non-posted device memory mappings and set the right memory
attributes for them. Needed because on the Apple M1 using the wrong
mapping will fault.
ok patrick@, dlg@
Diffstat (limited to 'sys/arch/arm64/include/pte.h')
-rw-r--r-- | sys/arch/arm64/include/pte.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/arm64/include/pte.h b/sys/arch/arm64/include/pte.h index 10500aca24f..9c566b872cc 100644 --- a/sys/arch/arm64/include/pte.h +++ b/sys/arch/arm64/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.5 2017/04/13 23:29:02 kettenis Exp $ */ +/* $OpenBSD: pte.h,v 1.6 2021/02/16 12:33:22 kettenis Exp $ */ /* * Copyright (c) 2014 Dale Rahn <drahn@dalerahn.com> * @@ -53,11 +53,11 @@ #define ATTR_IDX(x) ((x) << 2) #define ATTR_IDX_MASK (7 << 2) -#define PTE_ATTR_DEV 0 -#define PTE_ATTR_CI 1 -#define PTE_ATTR_WB 2 -#define PTE_ATTR_WT 3 - +#define PTE_ATTR_DEV_NGNRNE 0 +#define PTE_ATTR_DEV_NGNRE 1 +#define PTE_ATTR_CI 2 +#define PTE_ATTR_WB 3 +#define PTE_ATTR_WT 4 #define SH_INNER 3 #define SH_OUTER 2 |