Просмотр исходного кода

fix arm clone syscall bug (no effect unless app uses clone)

the code to exit the new thread/process after the start function
returns was mixed up in its syscall convention.
Rich Felker 12 лет назад
Родитель
Сommit
e0ea44cb76
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/thread/arm/clone.s

+ 1 - 2
src/thread/arm/clone.s

@@ -27,8 +27,7 @@ clone:
 	bne 1f
 	mov lr,pc
 	mov pc,r5
-2:	mov r1,r0
-	mov r0,#1
+2:	mov r7,#1
 	svc 0
 
 1:	mov lr,pc