vtv-change-permission.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright (C) 2013
  2. Free Software Foundation
  3. This file is part of GCC.
  4. modify it under the terms of the GNU Library General Public License
  5. as published by the Free Software Foundation; either version 2, or
  6. (at your option) any later version.
  7. In addition to the permissions in the GNU Library General Public
  8. License, the Free Software Foundation gives you unlimited
  9. permission to link the compiled version of this file into
  10. combinations with other programs, and to distribute those
  11. combinations without any restriction coming from the use of this
  12. file. (The Library Public License restrictions do apply in other
  13. respects; for example, they cover modification of the file, and
  14. distribution when not linked into a combined executable.)
  15. This program is distributed in the hope that it will be useful, but
  16. WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. Library General Public License for more details.
  19. You should have received a copy of the GNU Library General Public
  20. License along with this program; if not, write to the Free Software
  21. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  22. 02110-1301, USA. */
  23. #ifndef __VTV_H__
  24. #define __VTV_H__
  25. /* We could have used an enumeration here but it just makes it more
  26. difficult for the compiler to generate a call to this. These are
  27. used as arguments to the function __VLTChangePermission, declared
  28. below. */
  29. #define __VLTP_READ_ONLY 0
  30. #define __VLTP_READ_WRITE 1
  31. #ifdef __cplusplus
  32. extern "C" void __VLTChangePermission (int);
  33. #else
  34. extern void __VLTChangePermission (int);
  35. #endif
  36. #ifdef BIG_PAGE_SIZE
  37. /* TODO - Replace '4096' below with correct big page size. */
  38. #define VTV_PAGE_SIZE 4096
  39. #else
  40. #define VTV_PAGE_SIZE 4096
  41. #endif
  42. #endif /* __VTV_H__ */