freebsd-dev/sys/riscv/riscv
Jessica Clarke e28d8a5b26 riscv: Use SBI shutdown call to implement RB_POWEROFF
Currently we only call sbi_shutdown in cpu_reset, which means we reach
"Please press any key to reboot." even when RB_POWEROFF is set, and only
once the user presses a key do we then shutdown. Instead, register a
shutdown_final event handler and make an SBI shutdown call if
RB_POWEROFF is set.

Reviewed by:	br, jhb (mentor), kp
Approved by:	br, jhb (mentor), kp
Differential Revision:	https://reviews.freebsd.org/D25183
2020-06-08 17:57:21 +00:00
..
autoconf.c
bus_machdep.c
bus_space_asm.S Use unsigned loads in fubyte, fuword16, generic_bs_r_1, generic_bs_r_2 2020-01-17 16:48:20 +00:00
busdma_bounce.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
busdma_machdep.c Introduce the concept of busdma tag templates. A template can be allocated 2019-12-24 14:48:46 +00:00
clock.c RISC-V: Support EARLY_AP_STARTUP 2019-09-16 22:17:16 +00:00
copyinout.S riscv: Fix copyin/copyout 2019-07-29 14:59:14 +00:00
cpufunc_asm.S Various fixes for TLB management on RISC-V. 2018-10-15 18:56:54 +00:00
db_disasm.c Rewrite RISC-V disassembler: 2018-08-14 16:03:03 +00:00
db_interface.c Replace uses of sbadaddr with stval. 2018-12-19 17:52:09 +00:00
db_trace.c Use the context created in makectx() for stack traces. 2020-02-06 18:04:45 +00:00
dump_machdep.c
elf_machdep.c Improve MACHINE_ARCH handling for hard vs soft-float on RISC-V. 2020-04-27 17:55:40 +00:00
exception.S Trim duplicate CSR swaps from user exceptions. 2020-01-30 22:19:48 +00:00
genassym.c RISC-V: Check that the DTB doesn't overlap with kernel 2020-06-08 08:52:02 +00:00
identcpu.c RISC-V: add support for SBI spec v0.2 2019-11-15 03:34:27 +00:00
in_cksum.c
intr_machdep.c Remove a duplicate KTR entry 2019-09-08 19:46:34 +00:00
locore.S RISC-V: Check that the DTB doesn't overlap with kernel 2020-06-08 08:52:02 +00:00
machdep.c RISC-V: Check that the DTB doesn't overlap with kernel 2020-06-08 08:52:02 +00:00
mem.c
minidump_machdep.c Display the approximate space needed when a minidump fails due to lack 2019-06-30 03:14:04 +00:00
mp_machdep.c Use the HSM SBI extension to start APs 2020-05-01 21:58:19 +00:00
nexus.c Deactivate IRQ resource by calling to intr_deactivate_irq(). 2019-05-01 15:03:12 +00:00
ofw_machdep.c
plic.c plic: support irq distribution 2019-11-15 03:18:11 +00:00
pmap.c sys/riscv: Remove debug printfs 2020-06-08 08:51:57 +00:00
riscv_console.c Remove stale workaround for the htif console. 2020-02-05 20:11:08 +00:00
sbi.c riscv: Use SBI shutdown call to implement RB_POWEROFF 2020-06-08 17:57:21 +00:00
soc.c Embed a simplebus_softc in struct soc_softc. 2018-07-24 21:02:11 +00:00
stack_machdep.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
support.S Use unsigned loads in fubyte, fuword16, generic_bs_r_1, generic_bs_r_2 2020-01-17 16:48:20 +00:00
swtch.S Only compile clear_fpu state code when we're building with options FPE. 2020-02-24 16:41:29 +00:00
sys_machdep.c
timer.c Replace inline assembly with rdtime macro 2020-01-10 03:17:28 +00:00
trap.c Fix entering KDB with dtrace-enabled kernel. 2020-05-26 16:44:05 +00:00
uio_machdep.c
uma_machdep.c Implement minidump support for RISC-V. 2019-03-06 00:01:06 +00:00
unwind.c
vm_machdep.c Fix global pointer relaxations in the RISC-V kernel 2019-06-09 15:43:38 +00:00