nuttx-apps/examples/pffault/Make.defs
Marco Casaroli 620a182f51 examples/pffault: Add a test that touches a kernel address from user space.
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>
2026-09-30 13:25:06 -03:00

25 lines
1.1 KiB
Text

############################################################################
# apps/examples/pffault/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
ifneq ($(CONFIG_EXAMPLES_PFFAULT),)
CONFIGURED_APPS += $(APPDIR)/examples/pffault
endif