OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [glibc/] [sysdeps/] [riscv/] [bits/] [link.h] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
/* Copyright (C) 2005, 2009 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
3
 
4
   The GNU C Library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Lesser General Public
6
   License as published by the Free Software Foundation; either
7
   version 2.1 of the License, or (at your option) any later version.
8
 
9
   The GNU C Library is distributed in the hope that it will be useful,
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
   Lesser General Public License for more details.
13
 
14
   You should have received a copy of the GNU Lesser General Public
15
   License along with the GNU C Library; if not, write to the Free
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17
   02111-1307 USA.  */
18
 
19
#ifndef _LINK_H
20
# error "Never include <bits/link.h> directly; use <link.h> instead."
21
#endif
22
 
23
typedef struct La_riscv_regs
24
{
25
  unsigned long lr_reg[8]; /* a0 - a7 */
26
  double lr_fpreg[8]; /* fa0 - fa7 */
27
  unsigned long lr_ra;
28
  unsigned long lr_sp;
29
} La_riscv_regs;
30
 
31
/* Return values for calls from PLT on RISC-V.  */
32
typedef struct La_riscv_retval
33
{
34
  unsigned long lrv_a0;
35
  unsigned long lrv_a1;
36
  double lrv_fa0;
37
  double lrv_fa1;
38
} La_riscv_retval;
39
 
40
__BEGIN_DECLS
41
 
42
extern ElfW(Addr) la_riscv_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx,
43
                                         uintptr_t *__refcook,
44
                                         uintptr_t *__defcook,
45
                                         La_riscv_regs *__regs,
46
                                         unsigned int *__flags,
47
                                         const char *__symname,
48
                                         long int *__framesizep);
49
extern unsigned int la_riscv_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx,
50
                                          uintptr_t *__refcook,
51
                                          uintptr_t *__defcook,
52
                                          const La_riscv_regs *__inregs,
53
                                          La_riscv_retval *__outregs,
54
                                          const char *__symname);
55
 
56
__END_DECLS

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.