* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#define NOP 0x90
#define RET 0xc3
#define LOCKSTAT_AFRAMES 1
-#elif __ppc__
-#define NOP 0x60000000
-#define RET 0x4e800020 /* blr */
-#define LOCKSTAT_AFRAMES 2
#else
#error "not ported to this architecture"
#endif
instr = (active ? NOP : RET );
(void) ml_nofault_copy( (vm_offset_t)&instr, *(assembly_probes[i]),
sizeof(instr));
-#endif
-#ifdef __ppc__
- uint32_t instr;
- instr = (active ? NOP : RET );
- (void) ml_nofault_copy( (vm_offset_t)&instr, *(assembly_probes[i]), sizeof(instr));
#endif
}
}
static dtrace_provider_id_t lockstat_id;
/*ARGSUSED*/
-static void
+static int
lockstat_enable(void *arg, dtrace_id_t id, void *parg)
{
#pragma unused(arg) /* __APPLE__ */
lockstat_hot_patch(TRUE);
membar_producer();
+ return(0);
}