Skip to content

Commit

Permalink
Merge pull request #252 from sifive/fix-clic-handle
Browse files Browse the repository at this point in the history
CLIC handles are named SIFIVE, not RISCV
  • Loading branch information
nategraff-sifive authored Apr 21, 2020
2 parents 1ac939f + 4a4b8ac commit 086fb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gloss/sys_clock_gettime.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#endif

#if !defined(mtime_interrupt_controller) && \
defined(__METAL_DT_RISCV_CLIC0_HANDLE)
#define mtime_interrupt_controller __METAL_DT_RISCV_CLIC0_HANDLE
defined(__METAL_DT_SIFIVE_CLIC0_HANDLE)
#define mtime_interrupt_controller __METAL_DT_SIFIVE_CLIC0_HANDLE
#endif

int clock_getres(clockid_t clk_id, struct timespec *res) {
Expand Down

0 comments on commit 086fb24

Please sign in to comment.