diff options
Diffstat (limited to 'usr/src/uts/intel/dtrace/fbt.c')
-rw-r--r-- | usr/src/uts/intel/dtrace/fbt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/intel/dtrace/fbt.c b/usr/src/uts/intel/dtrace/fbt.c index b9353bd30c..5df2d8b803 100644 --- a/usr/src/uts/intel/dtrace/fbt.c +++ b/usr/src/uts/intel/dtrace/fbt.c @@ -117,7 +117,7 @@ fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval) dtrace_probe(fbt->fbtp_id, stack0, stack1, stack2, stack3, stack4); - CPU->cpu_dtrace_caller = NULL; + CPU->cpu_dtrace_caller = 0; } else { #ifdef __amd64 /* @@ -134,7 +134,7 @@ fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval) dtrace_probe(fbt->fbtp_id, fbt->fbtp_roffset, rval, 0, 0, 0); - CPU->cpu_dtrace_caller = NULL; + CPU->cpu_dtrace_caller = 0; } return (fbt->fbtp_rval); @@ -183,7 +183,7 @@ fbt_provide_module(void *arg, struct modctl *ctl) if (strcmp(modname, "kmdbmod") == 0) return; - if (str == NULL || symhdr == NULL || symhdr->sh_addr == NULL) { + if (str == NULL || symhdr == NULL || symhdr->sh_addr == 0) { /* * If this module doesn't (yet) have its string or symbol * table allocated, clear out. @@ -264,7 +264,7 @@ fbt_provide_module(void *arg, struct modctl *ctl) * In order to be eligible, the function must begin with the * following sequence: * - * pushl %esp + * pushl %esp * movl %esp, %ebp * * Note that there are two variants of encodings that generate @@ -721,7 +721,7 @@ fbt_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) dtrace_invop_add(fbt_invop); if (ddi_create_minor_node(devi, "fbt", S_IFCHR, 0, - DDI_PSEUDO, NULL) == DDI_FAILURE || + DDI_PSEUDO, 0) == DDI_FAILURE || dtrace_register("fbt", &fbt_attr, DTRACE_PRIV_KERNEL, NULL, &fbt_pops, NULL, &fbt_id) != 0) { fbt_cleanup(devi); |