search for: m68k_syscal

Displaying 1 result from an estimated 1 matches for "m68k_syscal".

Did you mean: m68k_syscall
2006 Jan 30
1
[WIP] klibc for m68k
...Kyle diff --git a/klibc/arch/m68k/syscall.c b/klibc/arch/m68k/syscall.c new file mode 100644 index 0000000..6706379 --- /dev/null +++ b/klibc/arch/m68k/syscall.c @@ -0,0 +1,31 @@ +/* klibc/arch/m68k/syscall.c + * + * Copyright (C) 2006, Kyle McMartin <kyle@parisc-linux.org> + * + */ + +long +m68k_syscall(long nr, long a0, long a1, long a2, long a3, long a4, long a5) +{ + long ret; + register long num __asm__("%d0") = nr; + register long arg0 __asm__("%d1") = a0; + register long arg1 __asm__("%d2") = a1; + register long arg2 __asm__("%d3") = a2; + register lo...