From c7383aebd6c8822e4076cb0bff21a9b60bfaf2f1 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 15 Jul 2005 18:17:59 +0000 Subject: 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 --- sys/dev/hwpmc/hwpmc_mod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/hwpmc') 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; -- cgit v1.1