panic: NULL softc for 0

Nate Lawson nate at root.org
Fri Nov 21 13:41:28 PST 2003


Sorry to reply to myself.  Are you loading acpi as a module and have an
SMP box?  If so, please try this patch, recompile the module, and go
again:

retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile	15 Nov 2003 19:26:06 -0000	1.32
+++ Makefile	21 Nov 2003 21:37:41 -0000
@@ -44,11 +44,14 @@
 SRCS+=	OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c
 SRCS+=	opt_acpi.h opt_bus.h opt_ddb.h
 SRCS+=	device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
+.if ACPI_MAX_THREADS
+CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
+.endif
 .if ACPI_NO_SEMAPHORES
 CFLAGS+=-DACPI_NO_SEMAPHORES
 .endif
-.if ACPI_MAX_THREADS
-CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
+.if SMP
+CFLAGS+=-DSMP
 .endif

 # Debugging support


More information about the freebsd-current mailing list