From b8fcdddcbb192fc367ff04bbd753b9deb69b09f3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 28 May 2016 18:12:58 +0200 Subject: nios2: sync support with glibc Only static linking is supported for now. More debugging and analyzing for ld.so, TLS and NPTL is required. But at least you can bootup a static root fileystem in Qemu. --- libc/sysdeps/linux/nios2/syscall.c | 47 -------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 libc/sysdeps/linux/nios2/syscall.c (limited to 'libc/sysdeps/linux/nios2/syscall.c') diff --git a/libc/sysdeps/linux/nios2/syscall.c b/libc/sysdeps/linux/nios2/syscall.c deleted file mode 100644 index 60ddd02a6..000000000 --- a/libc/sysdeps/linux/nios2/syscall.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * libc/sysdeps/linux/nios2/syscall.c -- generic syscall function for linux/nios2 - * - * Copyright (C) 2004 Microtronix Datacom Ltd. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License - * for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this program; see the file COPYING.LIB. If not, see - * . - */ - -#include -#include -#include -#include - - -long syscall(long sysnum, long a, long b, long c, long d, long e, long f) -{ - register long _r2 __asm__("r2")=(long)TRAP_ID_SYSCALL; - register long _r3 __asm__("r3")=(long)sysnum; - - register long _r4 __asm__("r4")=(long)(a); - register long _r5 __asm__("r5")=(long)(b); - register long _r6 __asm__("r6")=(long)(c); - register long _r7 __asm__("r7")=(long)(d); - register long _r8 __asm__("r8")=(long)(e); - register long _r9 __asm__("r9")=(long)(f); - __asm__ __volatile__( - "trap " - : "=r"(_r2), "=r"(_r3) - : "0"(_r2), "1"(_r3), - "r"(_r4), "r"(_r5), "r"(_r6), "r"(_r7), "r"(_r8), "r"(_r9) - : "memory"); - - __syscall_return (long, _r2); -} - -- cgit v1.2.3