mirror of
https://github.com/riscv-software-src/opensbi
synced 2025-11-02 21:18:45 +00:00
The console device is registered by platform only in early_init()
callback so any prints before this point will be lost. Introduce an
early console buffer for caching prints before platform early_init().
For crashes before platform early_init(), users can simply dump the
contents of the console_early_buffer[] string using a debugger. The
relative address of the console_early_buffer[] string can be found
using following two commands:
CONSOLE_EARLY_FIFO_ADDR=`${CROSS_COMPILE}objdump -D \
build/platform/generic/firmware/fw_dynamic.elf | \
grep "<console_early_fifo>:" | awk '{print $1}'`
${CROSS_COMPILE}objdump -R build/platform/generic/firmware/fw_dynamic.elf | \
grep $CONSOLE_EARLY_FIFO_ADDR | awk '{print $3}'
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-By: Himanshu Chauhan <hchauhan@ventanamicro.com>
70 lines
1.1 KiB
Plaintext
70 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
menu "Generic SBI Support"
|
|
|
|
config CONSOLE_EARLY_BUFFER_SIZE
|
|
int "Early console buffer size (bytes)"
|
|
default 256
|
|
|
|
config SBI_ECALL_TIME
|
|
bool "Timer extension"
|
|
default y
|
|
|
|
config SBI_ECALL_RFENCE
|
|
bool "RFENCE extension"
|
|
default y
|
|
|
|
config SBI_ECALL_IPI
|
|
bool "IPI extension"
|
|
default y
|
|
|
|
config SBI_ECALL_HSM
|
|
bool "Hart State Management extension"
|
|
default y
|
|
|
|
config SBI_ECALL_SRST
|
|
bool "System Reset extension"
|
|
default y
|
|
|
|
config SBI_ECALL_SUSP
|
|
bool "System Suspend extension"
|
|
default y
|
|
|
|
config SBI_ECALL_PMU
|
|
bool "Performance Monitoring Unit extension"
|
|
default y
|
|
|
|
config SBI_ECALL_DBCN
|
|
bool "Debug Console extension"
|
|
default y
|
|
|
|
config SBI_ECALL_CPPC
|
|
bool "CPPC extension"
|
|
default y
|
|
|
|
config SBI_ECALL_FWFT
|
|
bool "Firmware Feature extension"
|
|
default y
|
|
|
|
config SBI_ECALL_LEGACY
|
|
bool "SBI v0.1 legacy extensions"
|
|
default y
|
|
|
|
config SBI_ECALL_VENDOR
|
|
bool "Platform-defined vendor extensions"
|
|
default y
|
|
|
|
config SBI_ECALL_DBTR
|
|
bool "Debug Trigger Extension"
|
|
default y
|
|
|
|
config SBIUNIT
|
|
bool "Enable SBIUNIT tests"
|
|
default n
|
|
|
|
config SBI_ECALL_SSE
|
|
bool "SSE extension"
|
|
default y
|
|
|
|
endmenu
|