Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enabling v7M MPU too early #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/vmpu/src/armv7m/vmpu_armv7m.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ void vmpu_arch_init(void)
/* Initialize static MPU regions. */
vmpu_arch_init_hw();

vmpu_mpu_lock();

/* Dump MPU configuration in debug mode. */
#ifndef NDEBUG
debug_mpu_config();
Expand Down
3 changes: 3 additions & 0 deletions core/vmpu/src/vmpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ void vmpu_init_post(void)

/* load boxes */
vmpu_load_boxes();

/* enable mpu */
vmpu_mpu_lock();
}

static int copy_box_namespace(const char *src, char *dst)
Expand Down