From: patrick Date: Sun, 28 Feb 2021 21:28:33 +0000 (+0000) Subject: Add memory attributes for stage-2 pagetables. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f8ea3ffd3a00c874670c733f9c5b67a13b8890ae;p=openbsd Add memory attributes for stage-2 pagetables. ok kettenis@ --- diff --git a/sys/arch/arm64/include/pte.h b/sys/arch/arm64/include/pte.h index 9c566b872cc..c6fa32124c1 100644 --- a/sys/arch/arm64/include/pte.h +++ b/sys/arch/arm64/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.6 2021/02/16 12:33:22 kettenis Exp $ */ +/* $OpenBSD: pte.h,v 1.7 2021/02/28 21:28:33 patrick Exp $ */ /* * Copyright (c) 2014 Dale Rahn * @@ -59,6 +59,12 @@ #define PTE_ATTR_WB 3 #define PTE_ATTR_WT 4 +#define PTE_MEMATTR_DEV_NGNRNE 0x0 +#define PTE_MEMATTR_DEV_NGNRE 0x1 +#define PTE_MEMATTR_CI 0x5 +#define PTE_MEMATTR_WB 0xf +#define PTE_MEMATTR_WT 0xa + #define SH_INNER 3 #define SH_OUTER 2 #define SH_NONE 0