commit | 68b8f0e5ce9041052bf0b3026a27e1b9f5b77dd0 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Wed Apr 06 18:44:43 2022 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Apr 29 15:30:00 2022 +0200 |
tree | 88023bfc962d28236e38f81e81e17c0203dee8ee | |
parent | 2e66da3bc3ce3878527e0bd5edb9f62ad0fff7f1 [diff] |
riscv: pmp: new stackguard implementation Stackguard uses the PMP to prevents many types of stack overflow by making any access to the bottom stack area raise a CPU exception. Each thread has its set of precomputed PMP entries and those are written to PMP registers at context switch time. This is the code to set it up. It will be connected later. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>