Skip to content

Commit

Permalink
hal/gr712rc: fix dcache flushing
Browse files Browse the repository at this point in the history
JIRA: RTOS-616
  • Loading branch information
lukileczo committed Nov 16, 2023
1 parent 04bf59a commit 7dab2ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hal/sparcv8leon3/gaisler/gr712rc/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#include <hal/hal.h>


#define ASI_FLUSH_DCACHE 0x11


static struct {
hal_syspage_t *hs;
addr_t entry;
Expand Down Expand Up @@ -180,7 +183,7 @@ void hal_cpuFlushDCache(void)
__asm__ volatile(
"sta %%g0, [%%g0] %c0\n\t"
:
: "i"(ASI_CCTRL)
: "i"(ASI_FLUSH_DCACHE)
);
/* clang-format on */
}
Expand Down

0 comments on commit 7dab2ce

Please sign in to comment.