mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
powerpc/dtrace: Guard fuword64 usage for powerpc64 only
32-bit powerpc doesn't have a fuword64, so only use it on powerpc64. This could also be done elsewhere that splits 32-bit and 64-bit accesses, but adding ifdefs everywhere would just clutter up the source for little benefit. This is the only usage of fuword64 directly; other archs have a dtrace_fuword64_nocheck(), but powerpc does not, and I don't see a need to add it currently. MFC after: 1 week
This commit is contained in:
parent
e0b7defdee
commit
088cf0c5db
|
@ -246,12 +246,16 @@ fasttrap_usdt_args(fasttrap_probe_t *probe, struct reg *rp, int argc,
|
|||
if (x < 8)
|
||||
argv[i] = rp->fixreg[x];
|
||||
else
|
||||
#ifdef __powerpc64__
|
||||
if (SV_PROC_FLAG(curproc, SV_ILP32))
|
||||
#endif
|
||||
argv[i] = fuword32((void *)(rp->fixreg[1] + 8 +
|
||||
(x * sizeof(uint32_t))));
|
||||
#ifdef __powerpc64__
|
||||
else
|
||||
argv[i] = fuword64((void *)(rp->fixreg[1] + 48 +
|
||||
(x * sizeof(uint64_t))));
|
||||
#endif
|
||||
}
|
||||
|
||||
for (; i < argc; i++) {
|
||||
|
|
Loading…
Reference in a new issue