Skip to content

Commit a86c6a2

Browse files
committed
bugfix not getting return value from syscall_invoke
1 parent 88764b9 commit a86c6a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/arm/rtos/cortex-m3.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ namespace klib::rtos::cortex_m3 {
253253
"mov r2, %[arg2]\n"
254254
"mov r3, %[arg3]\n"
255255
"svc #0\n"
256-
: "=r"(ret)
256+
"mov %[ret], r0\n"
257+
: [ret]"=r"(ret)
257258
:
258259
[number]"r"(syscall_number),
259260
[arg1]"r"(values[0]),

0 commit comments

Comments
 (0)