Blame include/vtv-change-permission.h

Packit bbfece
/* Copyright (C) 2013-2018 Free Software Foundation, Inc.
Packit bbfece
  
Packit bbfece
   This file is part of GCC.
Packit bbfece
  
Packit bbfece
   modify it under the terms of the GNU Library General Public License
Packit bbfece
   as published by the Free Software Foundation; either version 2, or
Packit bbfece
   (at your option) any later version.
Packit bbfece
Packit bbfece
   In addition to the permissions in the GNU Library General Public
Packit bbfece
   License, the Free Software Foundation gives you unlimited
Packit bbfece
   permission to link the compiled version of this file into
Packit bbfece
   combinations with other programs, and to distribute those
Packit bbfece
   combinations without any restriction coming from the use of this
Packit bbfece
   file.  (The Library Public License restrictions do apply in other
Packit bbfece
   respects; for example, they cover modification of the file, and
Packit bbfece
   distribution when not linked into a combined executable.)
Packit bbfece
Packit bbfece
   This program is distributed in the hope that it will be useful, but
Packit bbfece
   WITHOUT ANY WARRANTY; without even the implied warranty of
Packit bbfece
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit bbfece
   Library General Public License for more details.
Packit bbfece
Packit bbfece
   You should have received a copy of the GNU Library General Public
Packit bbfece
   License along with this program; if not, write to the Free Software
Packit bbfece
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
Packit bbfece
   02110-1301, USA.  */
Packit bbfece
Packit bbfece
Packit bbfece
#ifndef __VTV_H__
Packit bbfece
#define __VTV_H__
Packit bbfece
Packit bbfece
/* We could have used an enumeration here but it just makes it more
Packit bbfece
   difficult for the compiler to generate a call to this.  These are
Packit bbfece
   used as arguments to the function __VLTChangePermission, declared
Packit bbfece
   below.  */
Packit bbfece
#define __VLTP_READ_ONLY  0
Packit bbfece
#define __VLTP_READ_WRITE 1
Packit bbfece
Packit bbfece
#ifdef __cplusplus
Packit bbfece
extern "C" void __VLTChangePermission (int);
Packit bbfece
#else
Packit bbfece
extern void __VLTChangePermission (int);
Packit bbfece
#endif
Packit bbfece
Packit bbfece
#ifdef BIG_PAGE_SIZE
Packit bbfece
/* TODO - Replace '4096' below with correct big page size.  */
Packit bbfece
#define VTV_PAGE_SIZE 4096
Packit bbfece
#else 
Packit bbfece
#if defined(__sun__) && defined(__svr4__) && defined(__sparc__)
Packit bbfece
#define VTV_PAGE_SIZE 8192
Packit bbfece
#else
Packit bbfece
#define VTV_PAGE_SIZE 4096
Packit bbfece
#endif
Packit bbfece
#endif
Packit bbfece
Packit bbfece
Packit bbfece
Packit bbfece
#endif /* __VTV_H__ */