Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nvmm/x86 Rename one constant, for clarity.
details: https://anonhg.NetBSD.org/src/rev/eba2c09e8e41
branches: trunk
changeset: 445991:eba2c09e8e41
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Nov 19 17:35:12 2018 +0000
description:
Rename one constant, for clarity.
diffstat:
sys/dev/nvmm/x86/nvmm_x86_svm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 55ec8af2b7d0 -r eba2c09e8e41 sys/dev/nvmm/x86/nvmm_x86_svm.c
--- a/sys/dev/nvmm/x86/nvmm_x86_svm.c Mon Nov 19 17:17:43 2018 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86_svm.c Mon Nov 19 17:35:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86_svm.c,v 1.3 2018/11/14 19:14:40 maxv Exp $ */
+/* $NetBSD: nvmm_x86_svm.c,v 1.4 2018/11/19 17:35:12 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.3 2018/11/14 19:14:40 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.4 2018/11/19 17:35:12 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -770,7 +770,7 @@
#define SVM_EXIT_IO_SZ8 __BIT(4)
#define SVM_EXIT_IO_REP __BIT(3)
#define SVM_EXIT_IO_STR __BIT(2)
-#define SVM_EXIT_IO_TYPE __BIT(0)
+#define SVM_EXIT_IO_IN __BIT(0)
static const int seg_to_nvmm[] = {
[0] = NVMM_X64_SEG_ES,
@@ -791,7 +791,7 @@
exit->reason = NVMM_EXIT_IO;
- if (info & SVM_EXIT_IO_TYPE) {
+ if (info & SVM_EXIT_IO_IN) {
exit->u.io.type = NVMM_EXIT_IO_IN;
} else {
exit->u.io.type = NVMM_EXIT_IO_OUT;
Home |
Main Index |
Thread Index |
Old Index