diff options
author | gonzo <gonzo@FreeBSD.org> | 2012-03-22 17:36:53 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2012-03-22 17:36:53 +0000 |
commit | 81298371ecfad9427d91cc6b01813643e5540c82 (patch) | |
tree | db4d34fb304f038ac3beaae5f512b5998687e1c7 /sys/sys/pmc.h | |
parent | b7b9f0e6d97e8da9835352c055a69213e77abfb1 (diff) | |
download | FreeBSD-src-81298371ecfad9427d91cc6b01813643e5540c82.zip FreeBSD-src-81298371ecfad9427d91cc6b01813643e5540c82.tar.gz |
Fix PMC syscall on 64-bit big endian systems.
Sycall argument is pointer to array of register_t values. Casting it to
pointer to structure with fields of size smaller then register_t we rely
on compiler-dependent memory layout of structure.
Tested on: mips64 and amd64 systems
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r-- | sys/sys/pmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h index e2d60e6..bfcb464 100644 --- a/sys/sys/pmc.h +++ b/sys/sys/pmc.h @@ -589,7 +589,7 @@ struct pmc_op_getmsr { */ struct pmc_syscall_args { - uint32_t pmop_code; /* one of PMC_OP_* */ + register_t pmop_code; /* one of PMC_OP_* */ void *pmop_data; /* syscall parameter */ }; |