[arch][riscv] C++ header guard the core riscv header

This commit is contained in:
Travis Geiselbrecht
2022-05-13 01:06:58 -07:00
parent 469b0b73f6
commit 4695035505

View File

@@ -109,6 +109,8 @@
#ifndef ASSEMBLY
#define __ASM_STR(x) #x
__BEGIN_CDECLS
#define riscv_csr_clear(csr, bits) \
({ \
ulong __val = bits; \
@@ -238,4 +240,6 @@ static inline uint64_t riscv_get_time(void) {
# endif
#endif
__END_CDECLS
#endif /* ASSEMBLY */