From 2262cfeef91458b01a1bfe3812ccbbfdf8b82807 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 18 Nov 2002 00:14:45 +0000 Subject: =?UTF-8?q?*=20Patch=20by=20Daniel=20Engstr=F6m,=2013=20Nov=202002?= =?UTF-8?q?:=20=20=20Add=20support=20for=20i386=20architecture=20and=20AMD?= =?UTF-8?q?=20SC520=20board?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Patch by Pierre Aubert, 12 Nov 2002: Add support for DOS filesystem and booting from DOS floppy disk --- examples/syscall.S | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'examples') diff --git a/examples/syscall.S b/examples/syscall.S index 9e8725e..9934490 100644 --- a/examples/syscall.S +++ b/examples/syscall.S @@ -38,12 +38,26 @@ mon_free: sub fp, ip, #4 ldmea fp, {fp, sp, pc} #else /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ + +#ifdef CONFIG_I386 /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ +#define SYMBOL_NAME(X) X +#define SYMBOL_NAME_LABEL(X) X##: + +#define SYSCALL(name,n) \ + .globl SYMBOL_NAME(name) ; \ +SYMBOL_NAME_LABEL(name) ; \ + ret + +#endif /* CONFIG_I386 */ + +#ifdef CONFIG_PPC #define SYSCALL(name,n) \ .globl name ; \ name: ; \ li r0,n ; \ sc ; \ blr +#endif /* CONFIG_PPC */ .text -- cgit v1.1