freebsd-dev/sys/ddb
Mitchell Horne 5644850620 ddb: have 'reset' command use normal reboot path
This conditionally gives all registered shutdown handlers a chance to
perform the reboot, with cpu_reset() being the fallback. The '\s'
modifier can be used with the command to get the previous behaviour.

The motivation is that some platforms may not be able do anything
meaningful via cpu_reset(), due to a lack of standardized reset
mechanism and/or firmware shortcomings. However, they may have a
separate device driver attached that normally performs the reboot. Such
is the case for some versions of the Raspberry Pi, where reset via PSCI
fails, but the BCM2835 watchdog driver has a shutdown hook.

Reported by:	bz
Reviewed by:	markj (slightly earlier version)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D37981
2023-01-23 15:10:24 -04:00
..
db_access.c sys/ddb: Use C99 fixed-width integer types. 2021-12-28 09:41:47 -08:00
db_access.h
db_break.c ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_break.h ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_capture.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
db_command.c ddb: have 'reset' command use normal reboot path 2023-01-23 15:10:24 -04:00
db_command.h
db_examine.c
db_expr.c fix style nit: space after if 2021-05-05 15:26:09 -06:00
db_input.c ddb: enable the use of ^C and ^S/^Q 2021-03-14 16:04:27 -07:00
db_lex.c Adjust db_flush_line() definition to avoid clang 15 warning 2022-07-19 20:37:15 +02:00
db_lex.h
db_main.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
db_output.c ddb: enable the use of ^C and ^S/^Q 2021-03-14 16:04:27 -07:00
db_output.h
db_print.c ddb: add ability to print user registers 2021-01-08 14:53:06 -04:00
db_ps.c Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
db_run.c ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_script.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
db_sym.c ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
db_sym.h ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
db_textdump.c kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
db_thread.c Use kdb_thr_from_pid() in db_lookup_thread(). 2020-12-31 16:01:27 -08:00
db_variables.c
db_variables.h
db_watch.c ddb: annotate some commands with DB_CMD_MEMSAFE 2022-07-18 22:06:09 +00:00
db_watch.h
db_write_cmd.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
ddb.h mac: add new mac_ddb(4) policy 2022-07-18 22:06:15 +00:00