Commit 97ab7511 authored by zhanghj2's avatar zhanghj2
Browse files

fix FLASH_DEVICE_ASSERT error

parent 9687a0a3
...@@ -33,11 +33,9 @@ ...@@ -33,11 +33,9 @@
#define FLASH_DEVICE_ASSERT(cond) \ #define FLASH_DEVICE_ASSERT(cond) \
do { \ do { \
if (not (cond)) { if (not (cond)) { \
__builtin_amdgcn_sched_barrier(0); \
printf("Assertion failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \ printf("Assertion failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \
asm volatile("s_trap 0 \n\t"); asm volatile("s_trap 0 \n\t"); \
__builtin_amdgcn_sched_barrier(0); \
} \ } \
} while(0) } while(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment