2000-06-10 11:47:53 +00:00
|
|
|
--- src/vc.c.orig Mon Apr 15 09:46:27 1996
|
|
|
|
+++ src/vc.c Sat Jun 10 19:40:19 2000
|
|
|
|
@@ -92,28 +92,26 @@
|
|
|
|
inline void blatch(void *head, int n)
|
|
|
|
{
|
|
|
|
|
|
|
|
- __asm__("\t clc\n"
|
|
|
|
+ __asm__ volatile("\t clc\n"
|
|
|
|
"1:\n"
|
2000-02-06 07:04:31 +00:00
|
|
|
"\t andb %%bl, (%%eax)\n"
|
|
|
|
"\t incl %%eax\n"
|
|
|
|
"\t loop 1b\n"
|
|
|
|
- :
|
|
|
|
- : "eax" ((long)head), "bl" (0x7F), "c" (n)
|
2000-06-10 11:47:53 +00:00
|
|
|
- : "bl", "cx" );
|
2000-02-06 07:04:31 +00:00
|
|
|
+ : "=bl" (head), "=c" (n)
|
2000-06-10 11:47:53 +00:00
|
|
|
+ : "eax" ((long)head), "0" (0x7F), "1" (n));
|
2000-02-06 07:04:31 +00:00
|
|
|
}
|
|
|
|
|
2000-06-10 11:47:53 +00:00
|
|
|
static
|
|
|
|
inline void llatch(void *head, int n)
|
|
|
|
{
|
|
|
|
|
|
|
|
- __asm__("\t clc\n"
|
|
|
|
+ __asm__ volatile ("\t clc\n"
|
|
|
|
"1:\n"
|
2000-02-06 07:04:31 +00:00
|
|
|
"\t andl %%ebx, (%%eax)\n"
|
|
|
|
"\t addl $4, %%eax\n"
|
|
|
|
"\t loop 1b\n"
|
|
|
|
- :
|
|
|
|
- : "eax" ((long)head), "ebx" (0x7F7F7F7F), "c" (n>>2)
|
2000-06-10 11:47:53 +00:00
|
|
|
- : "ebx", "cx" );
|
2000-02-06 07:04:31 +00:00
|
|
|
+ : "=ebx" (head), "=c" (n)
|
2000-06-10 11:47:53 +00:00
|
|
|
+ : "eax" ((long)head), "0" (0x7F7F7F7F), "1" (n>>2));
|
2000-02-06 07:04:31 +00:00
|
|
|
}
|
|
|
|
|
2000-06-10 11:47:53 +00:00
|
|
|
static inline u_int TextAddress(u_int x, u_int y)
|