Skip to content

Commit

Permalink
Fixes error in DO_ECALL macro for 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
HAKarlsson committed Dec 4, 2024
1 parent abb37cf commit df36bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/s3k/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ _Static_assert(sizeof(sys_args_t) == 32, "sys_args_t has the wrong size");
register s3k_val_t a5 __asm__("a5") = args.a5; \
register s3k_val_t a6 __asm__("a6") = args.a6; \
register s3k_val_t a7 __asm__("a7") = args.a7; \
switch ((width + 7) / 8) { \
switch ((width + 3) / 4) { \
case 0: \
__asm__ volatile("ecall" : "+r"(t0)); \
break; \
Expand Down

0 comments on commit df36bd8

Please sign in to comment.