Skip to content

Commit 9457b4b

Browse files
Nicolas Pitrefabiobaltieri
authored andcommitted
riscv: remove cruft
This is leftover from old PMP support that should have been deleted in commit 554f246 ("riscv: pmp: remove previous implementation"). Signed-off-by: Nicolas Pitre <[email protected]>
1 parent 8cac1f5 commit 9457b4b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

include/zephyr/arch/riscv/thread.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,6 @@
3030
#endif
3131
#endif
3232

33-
#ifdef CONFIG_RISCV_PMP
34-
#ifdef CONFIG_64BIT
35-
#define RISCV_PMP_CFG_NUM (CONFIG_PMP_SLOTS >> 3)
36-
#else
37-
#define RISCV_PMP_CFG_NUM (CONFIG_PMP_SLOTS >> 2)
38-
#endif
39-
#endif
40-
41-
#ifdef CONFIG_PMP_STACK_GUARD
42-
/*
43-
* PMP entries:
44-
* (1 for interrupt stack guard: None)
45-
* 4 for stacks guard: None
46-
* 1 for RAM: RW
47-
* 1 for other address space: RWX
48-
*/
49-
#define PMP_REGION_NUM_FOR_STACK_GUARD 6
50-
#define PMP_CFG_CSR_NUM_FOR_STACK_GUARD 2
51-
#endif /* CONFIG_PMP_STACK_GUARD */
52-
5333
/*
5434
* The following structure defines the list of registers that need to be
5535
* saved/restored when a context switch occurs.

0 commit comments

Comments
 (0)