Wed Oct 9 17:28:46 2019 UTC ()
Add new bits.


(maxv)
diff -r1.2 -r1.3 src/sys/arch/x86/include/pte.h

cvs diff -r1.2 -r1.3 src/sys/arch/x86/include/pte.h (expand / switch to unified diff)

--- src/sys/arch/x86/include/pte.h 2019/10/05 07:30:03 1.2
+++ src/sys/arch/x86/include/pte.h 2019/10/09 17:28:46 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: pte.h,v 1.2 2019/10/05 07:30:03 maxv Exp $ */ 1/* $NetBSD: pte.h,v 1.3 2019/10/09 17:28:46 maxv Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2010 The NetBSD Foundation, Inc. 4 * Copyright (c) 2010 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christoph Egger. 8 * by Christoph Egger.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -29,22 +29,24 @@ @@ -29,22 +29,24 @@
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#ifndef _X86_PTE_H 32#ifndef _X86_PTE_H
33#define _X86_PTE_H 33#define _X86_PTE_H
34 34
35/* Cacheability bits when we are using PAT */ 35/* Cacheability bits when we are using PAT */
36#define PGC_WB 0 /* The default */ 36#define PGC_WB 0 /* The default */
37#define PGC_WC PTE_PWT /* WT and CD is WC */ 37#define PGC_WC PTE_PWT /* WT and CD is WC */
38#define PGC_UCMINUS PTE_PCD /* UC but mtrr can override */ 38#define PGC_UCMINUS PTE_PCD /* UC but mtrr can override */
39#define PGC_UC (PTE_PWT | PTE_PCD) /* hard UC */ 39#define PGC_UC (PTE_PWT | PTE_PCD) /* hard UC */
40 40
41/* 41/*
42 * page protection exception bits 42 * Page protection exception bits
43 */ 43 */
44 44#define PGEX_P 0x0001 /* the page was present */
45#define PGEX_P 0x01 /* protection violation (vs. no mapping) */ 45#define PGEX_W 0x0002 /* exception during a write cycle */
46#define PGEX_W 0x02 /* exception during a write cycle */ 46#define PGEX_U 0x0004 /* exception while in user mode */
47#define PGEX_U 0x04 /* exception while in user mode (upl) */ 47#define PGEX_RSVD 0x0008 /* a reserved bit was set in the page tables */
48#define PGEX_X 0x10 /* exception during instruction fetch */ 48#define PGEX_X 0x0010 /* exception during instruction fetch */
 49#define PGEX_PK 0x0020 /* access disallowed by protection key */
 50#define PGEX_SGX 0x8000 /* violation of sgx-specific access rights */
49 51
50#endif /* _X86_PTE_H */ 52#endif /* _X86_PTE_H */