From 90ecc248e200fee448001248dde0ca540dd3ef64 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 1 Dec 1994 08:00:00 +0000 Subject: Import of Linux/MIPS 1.1.68 --- include/asm-mips/unistd.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/asm-mips/unistd.h') diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 46ce46ff0..0776f3fdb 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h @@ -5,7 +5,7 @@ #define _syscall0(type,name) \ type name(void) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile (".set\tnoat\n\t" \ "li\t$1,%1\n\t" \ ".set\tat\n\t" \ @@ -22,7 +22,7 @@ return -1; \ #define _syscall1(type,name,atype,a) \ type name(atype a) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile ("move\t$2,%2\n\t" \ ".set\tnoat\n\t" \ "li\t$1,%1\n\t" \ @@ -40,7 +40,7 @@ return -1; \ #define _syscall2(type,name,atype,a,btype,b) \ type name(atype a,btype b) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile ("move\t$2,%2\n\t" \ "move\t$3,%3\n\t" \ ".set\tnoat\n\t" \ @@ -60,7 +60,7 @@ return -1; \ #define _syscall3(type,name,atype,a,btype,b,ctype,c) \ type name (atype a, btype b, ctype c) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile ("move\t$2,%2\n\t" \ "move\t$3,%3\n\t" \ "move\t$4,%4\n\t" \ @@ -82,7 +82,7 @@ return -1; \ #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ type name (atype a, btype b, ctype c, dtype d) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile (".set\tnoat\n\t" \ "move\t$2,%2\n\t" \ "move\t$3,%3\n\t" \ @@ -107,7 +107,7 @@ return -1; \ #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ type name (atype a,btype b,ctype c,dtype d,etype e) \ { \ -register long __res; \ +register long __res __asm__ ("$2"); \ __asm__ volatile (".set\tnoat\n\t" \ "move\t$2,%2\n\t" \ "move\t$3,%3\n\t" \ -- cgit v1.2.3