diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-15 18:17:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-15 18:17:59 +0000 |
commit | c7383aebd6c8822e4076cb0bff21a9b60bfaf2f1 (patch) | |
tree | 9ea05f8294a9d7928ffaf2ba504cd7a6498d78e8 /sys/dev/hwpmc/hwpmc_mod.c | |
parent | 78ae67348bdfe1ef3d92615df852da303d06b847 (diff) | |
download | FreeBSD-src-c7383aebd6c8822e4076cb0bff21a9b60bfaf2f1.zip FreeBSD-src-c7383aebd6c8822e4076cb0bff21a9b60bfaf2f1.tar.gz |
Convert the atomic_ptr() operations over to operating on uintptr_t
variables rather than void * variables. This makes it easier and simpler
to get asm constraints and volatile keywords correct.
MFC after: 3 days
Tested on: i386, alpha, sparc64
Compiled on: ia64, powerpc, amd64
Kernel toolchain busted on: arm
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_mod.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 299746d..2b9a58a 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -771,7 +771,8 @@ pmc_link_target_process(struct pmc *pm, struct pmc_process *pp) LIST_INSERT_HEAD(&pm->pm_targets, pt, pt_next); - atomic_store_rel_ptr(&pp->pp_pmcs[ri].pp_pmc, pm); + atomic_store_rel_ptr((uintptr_t *)&pp->pp_pmcs[ri].pp_pmc, + (uintptr_t)pm); if (pm->pm_owner->po_owner == pp->pp_proc) pm->pm_flags |= PMC_F_ATTACHED_TO_OWNER; |