sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- Notional "implementation" for m_vki. ---*/ |
| 4 | /*--- m_vki.c ---*/ |
| 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
| 8 | This file is part of Valgrind, a dynamic binary instrumentation |
| 9 | framework. |
| 10 | |
sewardj | 4d474d0 | 2008-02-11 11:34:59 +0000 | [diff] [blame] | 11 | Copyright (C) 2006-2008 OpenWorks LLP |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 12 | info@open-works.co.uk |
| 13 | |
| 14 | This program is free software; you can redistribute it and/or |
| 15 | modify it under the terms of the GNU General Public License as |
| 16 | published by the Free Software Foundation; either version 2 of the |
| 17 | License, or (at your option) any later version. |
| 18 | |
| 19 | This program is distributed in the hope that it will be useful, but |
| 20 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | General Public License for more details. |
| 23 | |
| 24 | You should have received a copy of the GNU General Public License |
| 25 | along with this program; if not, write to the Free Software |
| 26 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 27 | 02111-1307, USA. |
| 28 | |
| 29 | The GNU General Public License is contained in the file COPYING. |
| 30 | */ |
| 31 | |
| 32 | #include "pub_core_basics.h" |
| 33 | #include "pub_core_vki.h" /* self */ |
| 34 | |
| 35 | /* We have pub_{core,tool}_vki.h. This is the matching implementation |
| 36 | for that interface. In fact there is no implementation, as the |
| 37 | sole purpose of the module is to export types and constants |
sewardj | e66f2e0 | 2006-12-30 17:45:08 +0000 | [diff] [blame] | 38 | describing the kernel interface, so this file is nearly empty. */ |
| 39 | |
| 40 | |
| 41 | /* ppc32/64-linux determines page size at startup, hence m_vki is |
| 42 | the logical place to store that info. */ |
| 43 | |
| 44 | #if defined(VGP_ppc32_linux) || defined(VGP_ppc64_linux) |
| 45 | unsigned long VKI_PAGE_SHIFT = 12; |
| 46 | unsigned long VKI_PAGE_SIZE = 1UL << 12; |
| 47 | #endif |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 48 | |
| 49 | |
| 50 | /*--------------------------------------------------------------------*/ |
| 51 | /*--- end m_vki.c ---*/ |
| 52 | /*--------------------------------------------------------------------*/ |