Add some more ulps.
[glibc/pb-stable.git] / elf / vismod1.c
blobde80cf3600d16fe49689c944696a46f8237f4c3d
1 /* Copyright (C) 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
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 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
19 int
20 protlocal (void)
22 return 0x4;
24 asm (".protected protlocal");
27 int
28 calllocal1 (void)
30 return protlocal () + 0x10;
33 int
34 (*getlocal1 (void)) (void)
36 return protlocal;
39 int
40 protinmod (void)
42 return 0x400;
44 asm (".protected protinmod");
46 int
47 callinmod1 (void)
49 return protinmod () + 0x1000;
52 int
53 (*getinmod1 (void)) (void)
55 return protinmod;
58 int
59 protitcpt (void)
61 return 0x40000;
63 asm (".protected protitcpt");
65 int
66 callitcpt1 (void)
68 return protitcpt () + 0x100000;
71 int
72 (*getitcpt1 (void)) (void)
74 return protitcpt;
77 const char *protvarlocal = __FILE__;
78 asm (".protected protvarlocal");
80 const char *
81 getvarlocal1 (void)
83 return protvarlocal;
86 const char *protvarinmod = __FILE__;
87 asm (".protected protvarinmod");
89 const char *
90 getvarinmod1 (void)
92 return protvarinmod;
95 const char *protvaritcpt = __FILE__;
96 asm (".protected protvaritcpt");
98 const char *
99 getvaritcpt1 (void)
101 return protvaritcpt;