include: Make unprivilege load/store functions as non-inline functions
authorAnup Patel <anup.patel@wdc.com>
Tue, 21 May 2019 10:42:33 +0000 (16:12 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 24 May 2019 02:52:47 +0000 (08:22 +0530)
commita22c6891b718a155b2b8429be62760860b4d6109
treee7002877a42905408cb7b3345d5405ecb0b97b3d
parent95b7480ab4b438cf545afae200b40012e83f1dda
include: Make unprivilege load/store functions as non-inline functions

Currently, the unprivilege load/store functions are inline functions.

We will be extending these functions to track whether a page/access
fault occurs when we execute unprivilege load/store instruction.

To make things simpler and debugable, we reduce number of places which
can potentially generate a page/access fault by making all unprivilege
load/store functions as regular (non-inline) functions.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/riscv_unpriv.h
lib/objects.mk
lib/riscv_unpriv.c [new file with mode: 0644]