summaryrefslogtreecommitdiff
path: root/sample/hello.c
diff options
context:
space:
mode:
authorhpa <hpa>2002-11-18 22:22:37 +0000
committerhpa <hpa>2002-11-18 22:22:37 +0000
commitb918509b86a1d65427fe9270886c41b5d0491344 (patch)
treee76cb483ca01a5f2a719768983a0ca0195a3df62 /sample/hello.c
parentf3b2b7af08efd9872c973f47410b39de63490230 (diff)
downloadsyslinux-2.01-pre2.tar.gz
Fix the COM32 sample programsyslinux-2.01-pre2
Diffstat (limited to 'sample/hello.c')
-rw-r--r--sample/hello.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sample/hello.c b/sample/hello.c
index bb8bbfa6..a2b79dde 100644
--- a/sample/hello.c
+++ b/sample/hello.c
@@ -27,9 +27,7 @@ static inline void memset(void *buf, int ch, unsigned int len)
: "+D" (buf), "+c" (len) : "a" (ch) : "memory");
}
-int _start(unsigned int nargs, char *cmdline,
- void (*syscall)(unsigned char, com32sys_t *, com32sys_t *),
- void *bounce_ptr, unsigned int bounce_len)
+int __start(void)
{
const char *msg = "Hello, World!\r\n";
com32sys_t inreg, outreg;
@@ -40,7 +38,7 @@ int _start(unsigned int nargs, char *cmdline,
for ( p = msg ; *p ; p++ ) {
inreg.edx.b[0] = *p;
inreg.eax.b[1] = 0x02; /* Write Character */
- syscall(0x21, &inreg, NULL);
+ __com32.cs_syscall(0x21, &inreg, NULL);
}
return 0;