freebsd-dev/sys/mips
John Baldwin da53b41194 Only call stacktrace_subr() from DDB.
There was a single call to stacktrace() under an #ifdef DEBUG to obtain
a stack trace during a fault that resulted in a function pointer to a
printf function being passed to stacktrace_subr() in db_trace.c.  The
kernel now has existing interfaces for obtaining a stack trace outside
of DDB (kdb_backtrace(), or the stack_*() API) that should be used instead.
Rather than fix the one call however, remove it since the kernel will
dump a trace anyway once it panics.

Make stacktrace_subr() static, remove the function pointer and change it
to use db_printf() explicitly.

Discussed with:	kan
Sponsored by:	DARPA / AFRL
2017-01-05 00:08:04 +00:00
..
adm5120 Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
alchemy Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
atheros [ar71xx] add EARLY_PRINTF support for the AR933x (Hornet) UART. 2016-12-29 17:31:38 +00:00
beri Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
broadcom bhnd(4): minor style(9) fixes 2016-12-19 20:07:58 +00:00
cavium Fix device delete child function. 2016-10-17 10:20:38 +00:00
conf Remove duplicate iic and iicbus devices from JZ4780 kernel 2017-01-04 18:36:30 +00:00
gxemul Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
idt Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
include Only call stacktrace_subr() from DDB. 2017-01-05 00:08:04 +00:00
ingenic The JZ4780 I2S can feed either the internal audio codec or the HDMI 2016-12-29 14:00:10 +00:00
malta Fix dump_avail[] for MALTA platforms to include the kernel. 2016-12-22 20:28:06 +00:00
mediatek ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
mips Only call stacktrace_subr() from DDB. 2017-01-05 00:08:04 +00:00
nlm Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
rmi Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
sibyte Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00