summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 11:06:59 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 11:06:59 +0300
commit5563a0335421c3e1d69dc62a1b58675ddf3d1e5b (patch)
tree47c756c6e8591467636f0983236c420f9f76cf43 /include
parent426adf9f6025fe70470476166db63ea7c0c1514b (diff)
downloadopensbi-5563a0335421c3e1d69dc62a1b58675ddf3d1e5b.tar.xz
Introduce sbi_current_hartid()
Use this helper instead of hardcoding csr_read(mhartid). Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_hart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index e369779..7041643 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -38,4 +38,6 @@ void sbi_hart_wait_for_coldboot(struct sbi_scratch *scratch, u32 hartid);
void sbi_hart_wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid);
+u32 sbi_current_hartid(void);
+
#endif