提交 49cdaea1 编写于 作者: C Catalin Patulea 提交者: Blue Swirl

tests/tcg: fix a few warnings

Signed-off-by: NCatalin Patulea <catalinp@google.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 0356404b
#include <asm/unistd.h> #include <asm/unistd.h>
static inline volatile void exit(int status) static inline void exit(int status)
{ {
int __res; int __res;
__asm__ volatile ("movl %%ecx,%%ebx\n"\ __asm__ volatile ("movl %%ecx,%%ebx\n"\
...@@ -17,6 +17,7 @@ static inline int write(int fd, const char * buf, int len) ...@@ -17,6 +17,7 @@ static inline int write(int fd, const char * buf, int len)
"popl %%ebx\n"\ "popl %%ebx\n"\
: "=a" (status) \ : "=a" (status) \
: "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len))); : "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len)));
return status;
} }
void _start(void) void _start(void)
......
...@@ -785,7 +785,7 @@ void fpu_clear_exceptions(void) ...@@ -785,7 +785,7 @@ void fpu_clear_exceptions(void)
long double fpregs[8]; long double fpregs[8];
} float_env32; } float_env32;
asm volatile ("fnstenv %0\n" : : "m" (float_env32)); asm volatile ("fnstenv %0\n" : "=m" (float_env32));
float_env32.fpus &= ~0x7f; float_env32.fpus &= ~0x7f;
asm volatile ("fldenv %0\n" : : "m" (float_env32)); asm volatile ("fldenv %0\n" : : "m" (float_env32));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册