mpu缺页模拟完善

This commit is contained in:
zhangzheng
2025-01-26 11:54:01 +08:00
parent 5bce3adf01
commit 501482c512
53 changed files with 841 additions and 7595 deletions

View File

@@ -10,7 +10,7 @@
#include <mpu_armv7.h>
#include "thread.h"
#include "task.h"
#if CONFIG_MK_MPU_CFG
#if CONFIG_MPU
static volatile umword_t *MPUCR = (umword_t *)0xE000ED94;
void mpu_init(void)

View File

@@ -38,6 +38,8 @@ typedef struct sp_info
void *knl_sp; //!< 内核sp
mword_t sp_type; //!< 使用的栈类型
} sp_info_t;
#define flush_all_tlb()
#define _dmb(ins) asm volatile("dmb" : : : "memory")
#define _dsb(ins) asm volatile("dsb" : : : "memory")
#define PAGE_SHIFT CONFIG_PAGE_SHIFT

View File

@@ -10,7 +10,7 @@
#include <mpu_armv7.h>
#include "thread.h"
#include "task.h"
#if CONFIG_MK_MPU_CFG
#if CONFIG_MPU
static volatile umword_t *MPUCR = (umword_t *)0xE000ED94;
void mpu_init(void)

View File

@@ -12,7 +12,7 @@
#include <mpu_armv8.h>
#include "thread.h"
#include "task.h"
#if CONFIG_MK_MPU_CFG
#if CONFIG_MPU
void mpu_init(void)
{

View File

@@ -10,7 +10,7 @@
#include <mpu_armv7.h>
#include "thread.h"
#include "task.h"
#if IS_ENABLED(CONFIG_MK_MPU_CFG)
#if IS_ENABLED(CONFIG_MPU)
static volatile umword_t *MPUCR = (umword_t *)0xE000ED94;
void mpu_init(void)

View File

@@ -10,7 +10,7 @@
#include <mpu_armv7.h>
#include "thread.h"
#include "task.h"
#if IS_ENABLED(CONFIG_MK_MPU_CFG)
#if IS_ENABLED(CONFIG_MPU)
static volatile umword_t *MPUCR = (umword_t *)0xE000ED94;
void mpu_init(void)