Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
FlashMLA
Commits
97ab7511
Commit
97ab7511
authored
May 29, 2026
by
zhanghj2
Browse files
fix FLASH_DEVICE_ASSERT error
parent
9687a0a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
csrc/utils.h
csrc/utils.h
+2
-4
No files found.
csrc/utils.h
View file @
97ab7511
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment