Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/stand/prekern Define MM_PROT_* locally.
details: https://anonhg.NetBSD.org/src/rev/bda575c863b6
branches: trunk
changeset: 357572:bda575c863b6
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Nov 15 18:44:34 2017 +0000
description:
Define MM_PROT_* locally.
diffstat:
sys/arch/amd64/stand/prekern/mm.c | 6 +++++-
sys/arch/amd64/stand/prekern/prekern.h | 6 +-----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r e8b7d3eec0d7 -r bda575c863b6 sys/arch/amd64/stand/prekern/mm.c
--- a/sys/arch/amd64/stand/prekern/mm.c Wed Nov 15 18:02:36 2017 +0000
+++ b/sys/arch/amd64/stand/prekern/mm.c Wed Nov 15 18:44:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.c,v 1.14 2017/11/15 18:02:36 maxv Exp $ */
+/* $NetBSD: mm.c,v 1.15 2017/11/15 18:44:34 maxv Exp $ */
/*
* Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -36,6 +36,10 @@
#define ELFROUND 64
+#define MM_PROT_READ 0x00
+#define MM_PROT_WRITE 0x01
+#define MM_PROT_EXECUTE 0x02
+
static const pt_entry_t protection_codes[3] = {
[MM_PROT_READ] = PG_RO | PG_NX,
[MM_PROT_WRITE] = PG_RW | PG_NX,
diff -r e8b7d3eec0d7 -r bda575c863b6 sys/arch/amd64/stand/prekern/prekern.h
--- a/sys/arch/amd64/stand/prekern/prekern.h Wed Nov 15 18:02:36 2017 +0000
+++ b/sys/arch/amd64/stand/prekern/prekern.h Wed Nov 15 18:44:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: prekern.h,v 1.13 2017/11/15 18:02:36 maxv Exp $ */
+/* $NetBSD: prekern.h,v 1.14 2017/11/15 18:44:34 maxv Exp $ */
/*
* Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -37,10 +37,6 @@
#include "pdir.h"
#include "redef.h"
-#define MM_PROT_READ 0x00
-#define MM_PROT_WRITE 0x01
-#define MM_PROT_EXECUTE 0x02
-
#define ASSERT(a) if (!(a)) fatal("ASSERT");
typedef uint64_t paddr_t;
typedef uint64_t vaddr_t;
Home |
Main Index |
Thread Index |
Old Index