Introduce HAS_MFAULTS_DELEGATION feature
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 21 Dec 2018 10:19:54 +0000 (19:19 +0900)
committerAnup Patel <anup@brainfault.org>
Fri, 21 Dec 2018 11:02:30 +0000 (16:32 +0530)
commit27332e63faaf6d3220a9d56bcfb280921114f012
tree10ab1d82fc03f31c851e2b38dab15929bd6be8b8
parentdb6c1fe78bebc103670becba39e1c34bcdc48185
Introduce HAS_MFAULTS_DELEGATION feature

Conditionnally delegate page fault exceptions from M mode to S mode
based on the platform features.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
include/sbi/sbi_platform.h
lib/sbi_hart.c
platform/sifive/hifive_u540/platform.c