From: Kenn H. <ke...@us...> - 2003-06-15 22:33:59
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax In directory sc8-pr-cvs1:/tmp/cvs-serv14457/include/asm-vax Modified Files: byteorder.h cacheflush.h unistd.h Log Message: Switch over to % prefix on register names (required for newer toolchain) Index: byteorder.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/byteorder.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- byteorder.h 20 May 2002 00:33:39 -0000 1.3 +++ byteorder.h 15 Jun 2003 22:33:56 -0000 1.4 @@ -16,11 +16,11 @@ { __u32 t1; /* assume input is aabbccdd in x*/ - __asm__ volatile ("rotl $8, %1, r1\n\t" /* r1 = bbccddaa */ - "bicl3 $0xff00ff00, r1, %0\n\t" /* %0 = 00cc00aa */ - "rotl $-8, %1, r1\n\t" /* r1 = ddaabbcc */ - "bicl2 $0xff00ff, r1\n\t" /* r1 = dd00bb00 */ - "bisl2 r1, %0\n\t" /* %0 = ddccbbaa */ + __asm__ volatile ("rotl $8, %1, %%r1\n\t" /* r1 = bbccddaa */ + "bicl3 $0xff00ff00, %%r1, %0\n\t" /* %0 = 00cc00aa */ + "rotl $-8, %1, %%r1\n\t" /* r1 = ddaabbcc */ + "bicl2 $0xff00ff, %%r1\n\t" /* r1 = dd00bb00 */ + "bisl2 %%r1, %0\n\t" /* %0 = ddccbbaa */ : "=&g" (t1) : "r" (x) : "r1" ); return t1; } Index: cacheflush.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/cacheflush.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- cacheflush.h 27 Jan 2003 00:23:45 -0000 1.2 +++ cacheflush.h 15 Jun 2003 22:33:56 -0000 1.3 @@ -28,10 +28,10 @@ /* Push a PC/PSL onto the stack so it looks like we got an interrupt, and then REI */ __asm__ ( - " movpsl -(sp) \n" - " pushab 1f \n" - " rei \n" - "1: " : : ); + " movpsl -(%%sp) \n" + " pushab 1f \n" + " rei \n" + "1: " : : ); } Index: unistd.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/unistd.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- unistd.h 10 Feb 2003 01:02:22 -0000 1.5 +++ unistd.h 15 Jun 2003 22:33:56 -0000 1.6 @@ -280,8 +280,8 @@ register long _sc_0 __asm__("r0"); \ _sc_0 = __NR_##name; \ __asm__ __volatile__ ("pushl $0x0\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0) \ : _syscall_clobbers); \ @@ -299,8 +299,8 @@ _sc_0 = __NR_##name; \ __asm__ __volatile__ ("pushl %2\n\t" \ "pushl $0x1\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1) \ : _syscall_clobbers); \ @@ -319,8 +319,8 @@ __asm__ __volatile__ ("pushl %3\n\t" \ "pushl %2\n\t" \ "pushl $0x2\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2 %3\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2 %3\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1), "m"((long)arg2) \ : _syscall_clobbers); \ @@ -342,8 +342,8 @@ "pushl %3\n\t" \ "pushl %2\n\t" \ "pushl $0x3\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2 %3 %4\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2 %3 %4\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1), "m"((long)arg2), \ "m"((long)arg3) \ @@ -365,8 +365,8 @@ "pushl %3\n\t" \ "pushl %2\n\t" \ "pushl $0x4\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2 %3 %4 %5\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2 %3 %4 %5\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1), "m"((long)arg2), \ "m"((long) arg3), "m"((long) arg4) \ @@ -390,8 +390,8 @@ "pushl %3\n\t" \ "pushl %2\n\t" \ "pushl $0x5\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2 %3 %4 %5 %6\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2 %3 %4 %5 %6\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1), "m"((long)arg2), \ "m"((long)arg3), "m"((long)arg4), \ @@ -417,8 +417,8 @@ "pushl %3\n\t" \ "pushl %2\n\t" \ "pushl $0x6\n\t" \ - "movl sp, ap\n\t" \ - "chmk r0 # %0 %1 %2 %3 %4 %5 %6 %7\n\t" \ + "movl %%sp, %%ap\n\t" \ + "chmk %%r0 # %0 %1 %2 %3 %4 %5 %6 %7\n\t" \ : "=r"(_sc_0) \ : "0"(_sc_0), "m"((long)arg1), "m"((long)arg2), \ "m"((long)arg3), "m"((long)arg4), \ |