mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-20 02:38:43 +00:00
dtrace: 64-bits registers support
The registers in ilumos and FreeBSD have a different number. In the illumos, last 32-bits register defined is SS an in FreeBSD is GS. While translating register we should comper it to the highest one. PR: 240358 Reported by: lwhsu@ MFC after: 2 weeks
This commit is contained in:
parent
291287667c
commit
5eb65c4ce5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353107
@ -505,7 +505,11 @@ dtrace_getreg(struct trapframe *rp, uint_t reg)
|
||||
REG_SS /* 18 SS */
|
||||
};
|
||||
|
||||
#ifdef illumos
|
||||
if (reg <= SS) {
|
||||
#else /* !illumos */
|
||||
if (reg <= GS) {
|
||||
#endif
|
||||
if (reg >= sizeof (regmap) / sizeof (int)) {
|
||||
DTRACE_CPUFLAG_SET(CPU_DTRACE_ILLOP);
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user