Skip to content

Commit 54c91dc

Browse files
ref(arch_mpu): Add arch_mpu header
1 parent 4e53f27 commit 54c91dc

File tree

1 file changed

+20
-0
lines changed
  • src/arch/armv8/armv8-r/inc/arch

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
/**
3+
* SPDX-License-Identifier: Apache-2.0
4+
* Copyright (c) Bao Project and Contributors. All rights reserved.
5+
*/
6+
7+
#ifndef __ARCH_MPU_H__
8+
#define __ARCH_MPU_H__
9+
10+
#include <bao.h>
11+
#include <arch/sysregs.h>
12+
13+
void mpu_arch_init(void);
14+
void mpu_arch_enable(void);
15+
bool mpu_add_region(struct mp_region* reg, bool locked);
16+
bool mpu_remove_region(struct mp_region* reg);
17+
bool mpu_update_region(struct mp_region* reg);
18+
bool mpu_perms_compatible(uint32_t perms1, uint32_t perms2);
19+
20+
#endif /* __ARCH_MPU_H__ */

0 commit comments

Comments
 (0)