PERFORCE change 207130 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Wed Feb 29 23:28:56 UTC 2012
http://p4web.freebsd.org/@@207130?ac=10
Change 207130 by gonzo at gonzo_thinkpad on 2012/02/29 23:28:44
- Replace amd64 version of the file with placeholder
Affected files ...
.. //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/regset.h#3 edit
Differences ...
==== //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/regset.h#3 (text+ko) ====
@@ -43,82 +43,17 @@
#endif
/*
- * The names and offsets defined here should be specified by the
- * AMD64 ABI suppl.
- *
- * We make fsbase and gsbase part of the lwp context (since they're
- * the only way to access the full 64-bit address range via the segment
- * registers) and thus belong here too. However we treat them as
- * read-only; if %fs or %gs are updated, the results of the descriptor
- * table lookup that those updates implicitly cause will be reflected
- * in the corresponding fsbase and/or gsbase values the next time the
- * context can be inspected. However it is NOT possible to override
- * the fsbase/gsbase settings via this interface.
- *
- * Direct modification of the base registers (thus overriding the
- * descriptor table base address) can be achieved with _lwp_setprivate.
+ * XXX: define registers properly
*/
-#define REG_GSBASE 27
-#define REG_FSBASE 26
-#define REG_DS 25
-#define REG_ES 24
-
-#define REG_GS 23
-#define REG_FS 22
-#define REG_SS 21
-#define REG_RSP 20
-#define REG_RFL 19
-#define REG_CS 18
-#define REG_RIP 17
-#define REG_ERR 16
-#define REG_TRAPNO 15
-#define REG_RAX 14
-#define REG_RCX 13
-#define REG_RDX 12
-#define REG_RBX 11
-#define REG_RBP 10
-#define REG_RSI 9
-#define REG_RDI 8
-#define REG_R8 7
-#define REG_R9 6
-#define REG_R10 5
-#define REG_R11 4
-#define REG_R12 3
-#define REG_R13 2
-#define REG_R14 1
-#define REG_R15 0
-
-/*
- * The names and offsets defined here are specified by i386 ABI suppl.
- */
-
-#define SS 18 /* only stored on a privilege transition */
-#define UESP 17 /* only stored on a privilege transition */
-#define EFL 16
-#define CS 15
-#define EIP 14
-#define ERR 13
-#define TRAPNO 12
-#define EAX 11
-#define ECX 10
-#define EDX 9
-#define EBX 8
-#define ESP 7
-#define EBP 6
-#define ESI 5
-#define EDI 4
-#define DS 3
-#define ES 2
-#define FS 1
-#define GS 0
-
-#define REG_PC EIP
+#if 0
+#define REG_PC PC
#define REG_FP EBP
-#define REG_SP UESP
+#define REG_SP SP
#define REG_PS EFL
#define REG_R0 EAX
#define REG_R1 EDX
+#endif
#ifdef __cplusplus
}
More information about the p4-projects
mailing list