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

fix FLASH_DEVICE_ASSERT error

parent 9687a0a3
......@@ -33,11 +33,9 @@
#define FLASH_DEVICE_ASSERT(cond) \
do { \
if (not (cond)) {
__builtin_amdgcn_sched_barrier(0); \
if (not (cond)) { \
printf("Assertion failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \
asm volatile("s_trap 0 \n\t");
__builtin_amdgcn_sched_barrier(0); \
asm volatile("s_trap 0 \n\t"); \
} \
} 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