Revision 49cdaea1
b/tests/tcg/hello-i386.c | ||
---|---|---|
1 | 1 |
#include <asm/unistd.h> |
2 | 2 |
|
3 |
static inline volatile void exit(int status)
|
|
3 |
static inline void exit(int status) |
|
4 | 4 |
{ |
5 | 5 |
int __res; |
6 | 6 |
__asm__ volatile ("movl %%ecx,%%ebx\n"\ |
... | ... | |
17 | 17 |
"popl %%ebx\n"\ |
18 | 18 |
: "=a" (status) \ |
19 | 19 |
: "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len))); |
20 |
return status; |
|
20 | 21 |
} |
21 | 22 |
|
22 | 23 |
void _start(void) |
b/tests/tcg/test-i386.c | ||
---|---|---|
785 | 785 |
long double fpregs[8]; |
786 | 786 |
} float_env32; |
787 | 787 |
|
788 |
asm volatile ("fnstenv %0\n" : : "m" (float_env32));
|
|
788 |
asm volatile ("fnstenv %0\n" : "=m" (float_env32));
|
|
789 | 789 |
float_env32.fpus &= ~0x7f; |
790 | 790 |
asm volatile ("fldenv %0\n" : : "m" (float_env32)); |
791 | 791 |
} |
Also available in: Unified diff