mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-05 05:07:49 +00:00
A small user program that reads or writes one address, by default 0x3fc98000, the base of the ESP32-S3 kernel DRAM region. A user process must not reach it, so the access must fault and only the process must die. "pffault w" makes the access a store, and a second argument names another address. With CONFIG_ESP32S3_PAGEFAULT and CONFIG_ESP32S3_PAGEFAULT_SELFTEST on the kernel side, "pffault r 0x80000000" exercises the recoverable-fault restart path, and "pffault r 0x0" the report path. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
28 lines
666 B
Text
28 lines
666 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_PFFAULT
|
|
tristate "Page-fault / PMS isolation test"
|
|
default n
|
|
---help---
|
|
A user-space task that deliberately touches a kernel-space address to
|
|
exercise the ESP32-S3 PMS isolation boundary and the kernel's
|
|
recoverable-fault dispatcher.
|
|
|
|
if EXAMPLES_PFFAULT
|
|
|
|
config EXAMPLES_PFFAULT_PROGNAME
|
|
string "Program name"
|
|
default "pffault"
|
|
|
|
config EXAMPLES_PFFAULT_PRIORITY
|
|
int "pffault task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_PFFAULT_STACKSIZE
|
|
int "pffault stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|