mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 20:48:04 +00:00
riscv compiler support
This commit is contained in:
@@ -529,6 +529,9 @@ gb_internal gb_inline void yield_thread(void) {
|
||||
_mm_pause();
|
||||
#elif defined(GB_CPU_ARM)
|
||||
__asm__ volatile ("yield" : : : "memory");
|
||||
#elif defined(GB_CPU_RISCV)
|
||||
// I guess?
|
||||
__asm__ volatile ("nop" : : : "memory");
|
||||
#else
|
||||
#error Unknown architecture
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user