coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmp.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __RISCV_PMP_H__
4
#define __RISCV_PMP_H__
5
6
#include <
stdint.h
>
7
8
/*
9
* this function needs to be implemented by a specific SoC.
10
* return number of PMP entries for current hart
11
*/
12
extern
int
pmp_entries_num
(
void
);
13
14
/* reset PMP setting */
15
void
reset_pmp
(
void
);
16
17
/* set up PMP record */
18
void
setup_pmp
(
uintptr_t
base
,
uintptr_t
size,
uintptr_t
flags);
19
20
#endif
/* __RISCV_PMP_H__ */
setup_pmp
void setup_pmp(uintptr_t base, uintptr_t size, uintptr_t flags)
Definition:
pmp.c:290
pmp_entries_num
int pmp_entries_num(void)
reset_pmp
void reset_pmp(void)
Definition:
pmp.c:278
base
uintptr_t base
Definition:
uart.c:17
stdint.h
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
src
arch
riscv
include
arch
pmp.h
Generated by
1.9.1