opnsense-src/sys/riscv
Mitchell Horne 3e00f4ab10 ddb: print the actual syscall name
Some architectures will pretty-print a system call trap in the
backtrace. Rather than printing the symbol, use the syscallname()
function to pull the string from the sv_syscallnames array corresponding
to the process. This simplifies the function somewhat.

Mostly, this will result in dropping the "sys" prefix, e.g. "sys_exit"
will now be printed simply as "exit".

Make two minor tweaks to the function signature: use a u_int for the
syscall number since this is a more correct type (see the 'code' member
of struct syscall_args), and make the thread pointer the first argument.
The latter is more natural and conventional.

Suggested by:   jrtc27
Reviewed by:	jrtc27, markj, jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37200

(cherry picked from commit aba921bd9e)
2022-11-06 10:54:46 -04:00
..
allwinner aw_wdog: support Allwinner D1 watchdog 2022-05-16 10:34:04 -03:00
conf riscv: move GEOM_PART_GPT option to DEFAULTS 2022-10-09 14:02:31 -03:00
include riscv: implement db_show_mdpcpu() 2022-08-11 11:21:41 -03:00
riscv ddb: print the actual syscall name 2022-11-06 10:54:46 -04:00
sifive sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-09-07 13:08:20 +01:00