瀏覽代碼

cleanup hardcoded syscall numbers

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Mark Salter 14 年之前
父節點
當前提交
e5d4a571e1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      libc/sysdeps/linux/c6x/clone.S

+ 2 - 1
libc/sysdeps/linux/c6x/clone.S

@@ -17,6 +17,7 @@
  ; along with this program; if not, write to the Free Software Foundation,
  ; along with this program; if not, write to the Free Software Foundation,
  ; Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  ; Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  ;
  ;
+#define __ASSEMBLY__
 
 
 	; int _clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg);
 	; int _clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg);
 
 
@@ -50,7 +51,7 @@ __clone:
 ||	AND .D2	~7,B4,B4
 ||	AND .D2	~7,B4,B4
 
 
 	; do the system call
 	; do the system call
-||	MVK .S2	120,B0		; __NR_clone
+||	MVK .S2	__NR_clone,B0
 ||	MV .L2  B5,B6
 ||	MV .L2  B5,B6
 0:
 0:
 #ifndef	_TMS320C6400_PLUS
 #ifndef	_TMS320C6400_PLUS