annotate include/vtv-change-permission.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1 /* Copyright (C) 2013-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 This file is part of GCC.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 modify it under the terms of the GNU Library General Public License
kono
parents:
diff changeset
6 as published by the Free Software Foundation; either version 2, or
kono
parents:
diff changeset
7 (at your option) any later version.
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 In addition to the permissions in the GNU Library General Public
kono
parents:
diff changeset
10 License, the Free Software Foundation gives you unlimited
kono
parents:
diff changeset
11 permission to link the compiled version of this file into
kono
parents:
diff changeset
12 combinations with other programs, and to distribute those
kono
parents:
diff changeset
13 combinations without any restriction coming from the use of this
kono
parents:
diff changeset
14 file. (The Library Public License restrictions do apply in other
kono
parents:
diff changeset
15 respects; for example, they cover modification of the file, and
kono
parents:
diff changeset
16 distribution when not linked into a combined executable.)
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 This program is distributed in the hope that it will be useful, but
kono
parents:
diff changeset
19 WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
kono
parents:
diff changeset
21 Library General Public License for more details.
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 You should have received a copy of the GNU Library General Public
kono
parents:
diff changeset
24 License along with this program; if not, write to the Free Software
kono
parents:
diff changeset
25 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
kono
parents:
diff changeset
26 02110-1301, USA. */
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #ifndef __VTV_H__
kono
parents:
diff changeset
30 #define __VTV_H__
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 /* We could have used an enumeration here but it just makes it more
kono
parents:
diff changeset
33 difficult for the compiler to generate a call to this. These are
kono
parents:
diff changeset
34 used as arguments to the function __VLTChangePermission, declared
kono
parents:
diff changeset
35 below. */
kono
parents:
diff changeset
36 #define __VLTP_READ_ONLY 0
kono
parents:
diff changeset
37 #define __VLTP_READ_WRITE 1
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 #ifdef __cplusplus
kono
parents:
diff changeset
40 extern "C" void __VLTChangePermission (int);
kono
parents:
diff changeset
41 #else
kono
parents:
diff changeset
42 extern void __VLTChangePermission (int);
kono
parents:
diff changeset
43 #endif
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 #ifdef BIG_PAGE_SIZE
kono
parents:
diff changeset
46 /* TODO - Replace '4096' below with correct big page size. */
kono
parents:
diff changeset
47 #define VTV_PAGE_SIZE 4096
kono
parents:
diff changeset
48 #else
kono
parents:
diff changeset
49 #if defined(__sun__) && defined(__svr4__) && defined(__sparc__)
kono
parents:
diff changeset
50 #define VTV_PAGE_SIZE 8192
kono
parents:
diff changeset
51 #else
kono
parents:
diff changeset
52 #define VTV_PAGE_SIZE 4096
kono
parents:
diff changeset
53 #endif
kono
parents:
diff changeset
54 #endif
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 #endif /* __VTV_H__ */