diff options
author | wdenk <wdenk> | 2002-11-18 00:14:45 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2002-11-18 00:14:45 +0000 |
commit | 2262cfeef91458b01a1bfe3812ccbbfdf8b82807 (patch) | |
tree | 3657d48c8ce9089fc96682848859d035a1e8f115 /examples | |
parent | 1d0350ed0b1b0f63e3fb5db6b19397b84a2ea1c7 (diff) |
* Patch by Daniel Engström, 13 Nov 2002:LABEL_2002_11_18_0115
Add support for i386 architecture and AMD SC520 board
* Patch by Pierre Aubert, 12 Nov 2002:
Add support for DOS filesystem and booting from DOS floppy disk
Diffstat (limited to 'examples')
-rw-r--r-- | examples/syscall.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/syscall.S b/examples/syscall.S index 9e8725edcd0..9934490433d 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 |