OSDN Git Service

ldso: bfin/frv: drop dead simulator code
[uclinux-h8/uClibc.git] / ldso / ldso / bfin / dl-syscalls.h
1 /* Copyright (C) 2003, 2004 Red Hat, Inc.
2    Contributed by Alexandre Oliva <aoliva@redhat.com>
3
4 This file is part of uClibc.
5
6 uClibc is free software; you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation; either version 2.1 of the
9 License, or (at your option) any later version.
10
11 uClibc is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with uClibc; see the file COPYING.LIB.  If not, write to
18 the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
19 USA.  */
20
21 #ifdef __NR_pread
22 #define __NR___syscall_pread __NR_pread
23 static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
24                         size_t, count, off_t, offset_hi, off_t, offset_lo)
25
26 static __always_inline ssize_t
27 _dl_pread(int fd, void *buf, size_t count, off_t offset)
28 {
29   return(__syscall_pread(fd,buf,count,__LONG_LONG_PAIR (offset >> 31, offset)));
30 }
31 #endif
32
33 #ifdef __NR_sram_alloc
34 #define __NR__dl_sram_alloc __NR_sram_alloc
35 static __always_inline _syscall2(__ptr_t, _dl_sram_alloc,
36                         size_t, len, unsigned long, flags)
37 #endif
38
39 #ifdef __NR_sram_free
40 #define __NR__dl_sram_free __NR_sram_free
41 static __always_inline _syscall1(int, _dl_sram_free, __ptr_t, addr)
42 #endif
43
44 #ifdef __NR_dma_memcpy
45 #define __NR__dl_dma_memcpy __NR_dma_memcpy
46 static __always_inline _syscall3(__ptr_t, _dl_dma_memcpy,
47                         __ptr_t, dest, __ptr_t, src, size_t, len)
48 #endif
49
50 #define __UCLIBC_MMAP_HAS_6_ARGS__