[Mirmince-commits] {mirmince} branch master updated. 6de85ec4b35a1cebbf8566c2db4f038c969c1e94
tg at freewrt.org
tg at freewrt.org
Sat Jan 5 22:22:35 UTC 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main git repository for FreeWRT project mirmince".
The branch, master has been updated
via 6de85ec4b35a1cebbf8566c2db4f038c969c1e94 (commit)
from ddb7e316691331f0de5a88ce5412718867838f22 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6de85ec4b35a1cebbf8566c2db4f038c969c1e94
Author: Thorsten Glaser <tg at mirbsd.org>
Date: Sat Jan 5 22:22:33 2013 +0000
on the wat to syscalls (for MirBSD/i386)
not finishing… I found a bug in jupp, which is more important right now
-----------------------------------------------------------------------
Summary of changes:
md/i386/asm.h | 11 +++++++++++
md/i386/mincebeg_md.S | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/md/i386/asm.h b/md/i386/asm.h
index 9c0ecdb..1edff3f 100644
--- a/md/i386/asm.h
+++ b/md/i386/asm.h
@@ -5,3 +5,14 @@
#ifndef SMALL
#define _ALIGN_TEXT .p2align 2,0x90
#endif
+
+#define SYSCALL_PREP \
+ .globl _C_LABEL(_mince_cerror)
+#define SYSCALL(cname,kname) \
+ _TEXT; \
+ _ALIGN_TEXT; \
+ ENTRY(cname) \
+ mov eax,SYS_ ## kname; \
+ int 0x80; \
+ jc _C_LABEL(_mince_cerror); \
+ ret
diff --git a/md/i386/mincebeg_md.S b/md/i386/mincebeg_md.S
index f24b5a0..c97972e 100644
--- a/md/i386/mincebeg_md.S
+++ b/md/i386/mincebeg_md.S
@@ -42,4 +42,4 @@ ASENTRY(_mince_csu_init)
#else
#error need OS specific CSU
#endif
- call _mince_csu_run
+ call _C_LABEL(_mince_csu_run)
hooks/post-receive
--
Main git repository for FreeWRT project mirmince
(FreeWRT project mirmince repository mirmince)
More information about the Mirmince-commits
mailing list