consistent hello naming
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 15 Jun 2003 20:42:31 +0000 (20:42 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 15 Jun 2003 20:42:31 +0000 (20:42 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@247 c046a42c-6fe2-441c-8c8c-71466251a162

tests/.cvsignore
tests/Makefile
tests/hello-i386.c [new file with mode: 0644]
tests/hello.c [deleted file]

index 5e5781e..18a8298 100644 (file)
@@ -1,6 +1,6 @@
  gmon.out
  testsig
- hello
+ hello-i386
  hello-arm
  sha1.test.c
  sha1.c
index 364e397..52e8129 100644 (file)
@@ -12,9 +12,9 @@ QEMU=../qemu
 
 all: $(TESTS)
 
-hello: hello.c
+hello-i386: hello-i386.c
        $(CC) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
-       strip hello
+       strip $@
 
 testclone: testclone.c
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
diff --git a/tests/hello-i386.c b/tests/hello-i386.c
new file mode 100644 (file)
index 0000000..e00245d
--- /dev/null
@@ -0,0 +1,26 @@
+#include <asm/unistd.h>
+
+extern inline volatile void exit(int status)
+{
+  int __res;
+  __asm__ volatile ("movl %%ecx,%%ebx\n"\
+                   "int $0x80" \
+                   :  "=a" (__res) : "0" (__NR_exit),"c" ((long)(status)));
+}
+
+extern inline int write(int fd, const char * buf, int len)
+{
+  int status;
+  __asm__ volatile ("pushl %%ebx\n"\
+                   "movl %%esi,%%ebx\n"\
+                   "int $0x80\n" \
+                   "popl %%ebx\n"\
+                   : "=a" (status) \
+                   : "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len)));
+}
+
+void _start(void)
+{
+    write(1, "Hello World\n", 12);
+    exit(0);
+}
diff --git a/tests/hello.c b/tests/hello.c
deleted file mode 100644 (file)
index e00245d..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <asm/unistd.h>
-
-extern inline volatile void exit(int status)
-{
-  int __res;
-  __asm__ volatile ("movl %%ecx,%%ebx\n"\
-                   "int $0x80" \
-                   :  "=a" (__res) : "0" (__NR_exit),"c" ((long)(status)));
-}
-
-extern inline int write(int fd, const char * buf, int len)
-{
-  int status;
-  __asm__ volatile ("pushl %%ebx\n"\
-                   "movl %%esi,%%ebx\n"\
-                   "int $0x80\n" \
-                   "popl %%ebx\n"\
-                   : "=a" (status) \
-                   : "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len)));
-}
-
-void _start(void)
-{
-    write(1, "Hello World\n", 12);
-    exit(0);
-}