Skip to content
Browse files

tests: kernel: userspace: explicitly declare function for the test

In the wake of moving the internal API header arm_core_mpu_dev.h
into arch/arm/cortex_m/mpu, we need to explicitly declare the
arm_core_mpu_disable() function in the userspace test. Note that
arm_core_mpu_disable() (as any other function in this internal
API) is not supposed to be called directly by kernel/application
functions; an exception is allowed in this test suite, so we are
able to test the MPU disabling functionality.

Signed-off-by: Ioannis Glaropoulos <>
  • Loading branch information...
ioannisg authored and MaureenHelm committed May 14, 2019
1 parent 45a147c commit 13a587756cc77c6bba4d7f264c564208aeea9b9b
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/kernel/mem_protect/userspace/src/main.c
@@ -23,7 +23,7 @@

#if defined(CONFIG_ARM)
#include <arch/arm/cortex_m/mpu/arm_core_mpu_dev.h>
extern void arm_core_mpu_disable(void);

#define INFO(fmt, ...) printk(fmt, ##__VA_ARGS__)

0 comments on commit 13a5877

Please sign in to comment.
You can’t perform that action at this time.