瀏覽代碼

fix order of syscall args for microblaze clone syscall

with this commit, based on testing with patches to qemu which are not
yet upstream,
Rich Felker 12 年之前
父節點
當前提交
6a04d1b8c6
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/thread/microblaze/clone.s

+ 2 - 3
src/thread/microblaze/clone.s

@@ -5,7 +5,7 @@
 
 # r5, r6, r7, r8, r9, r10, stack
 # fn, st, fl, ar, pt, tl, ct
-# fl, st, pt, tl, ctx
+# fl, st, __, pt, ct, tl
 
 __clone:
 clone:
@@ -15,8 +15,7 @@ clone:
 	swi     r8, r6, 4
 
 	ori     r5, r7, 0
-	ori     r7, r9, 0
-	ori     r8, r10, 0
+	ori     r8, r9, 0
 	lwi     r9, r1, 28
 	ori     r12, r0, 120