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 Reorder the GPRs to match the CPU encoding, ...



details:   https://anonhg.NetBSD.org/src/rev/8cb173c6cb11
branches:  trunk
changeset: 448899:8cb173c6cb11
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 13 06:32:45 2019 +0000

description:
Reorder the GPRs to match the CPU encoding, simplifies things on Intel.

diffstat:

 sys/dev/nvmm/x86/nvmm_x86.h |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (46 lines):

diff -r ea3e630245ac -r 8cb173c6cb11 sys/dev/nvmm/x86/nvmm_x86.h
--- a/sys/dev/nvmm/x86/nvmm_x86.h       Wed Feb 13 06:15:51 2019 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86.h       Wed Feb 13 06:32:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvmm_x86.h,v 1.3 2019/01/06 16:10:51 maxv Exp $        */
+/*     $NetBSD: nvmm_x86.h,v 1.4 2019/02/13 06:32:45 maxv Exp $        */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -47,21 +47,21 @@
 
 /* General Purpose Registers. */
 #define NVMM_X64_GPR_RAX               0
-#define NVMM_X64_GPR_RBX               1
-#define NVMM_X64_GPR_RCX               2
-#define NVMM_X64_GPR_RDX               3
-#define NVMM_X64_GPR_R8                        4
-#define NVMM_X64_GPR_R9                        5
-#define NVMM_X64_GPR_R10               6
-#define NVMM_X64_GPR_R11               7
-#define NVMM_X64_GPR_R12               8
-#define NVMM_X64_GPR_R13               9
-#define NVMM_X64_GPR_R14               10
-#define NVMM_X64_GPR_R15               11
-#define NVMM_X64_GPR_RDI               12
-#define NVMM_X64_GPR_RSI               13
-#define NVMM_X64_GPR_RBP               14
-#define NVMM_X64_GPR_RSP               15
+#define NVMM_X64_GPR_RCX               1
+#define NVMM_X64_GPR_RDX               2
+#define NVMM_X64_GPR_RBX               3
+#define NVMM_X64_GPR_RSP               4
+#define NVMM_X64_GPR_RBP               5
+#define NVMM_X64_GPR_RSI               6
+#define NVMM_X64_GPR_RDI               7
+#define NVMM_X64_GPR_R8                        8
+#define NVMM_X64_GPR_R9                        9
+#define NVMM_X64_GPR_R10               10
+#define NVMM_X64_GPR_R11               11
+#define NVMM_X64_GPR_R12               12
+#define NVMM_X64_GPR_R13               13
+#define NVMM_X64_GPR_R14               14
+#define NVMM_X64_GPR_R15               15
 #define NVMM_X64_GPR_RIP               16
 #define NVMM_X64_GPR_RFLAGS            17
 #define NVMM_X64_NGPR                  18



Home | Main Index | Thread Index | Old Index