182792244SWarner Losh /* 282792244SWarner Losh * FreeBSD VM parameters definitions 382792244SWarner Losh * 482792244SWarner Losh * Copyright (c) 2013 Stacey D. Son 582792244SWarner Losh * 682792244SWarner Losh * This program is free software; you can redistribute it and/or modify 782792244SWarner Losh * it under the terms of the GNU General Public License as published by 882792244SWarner Losh * the Free Software Foundation; either version 2 of the License, or 982792244SWarner Losh * (at your option) any later version. 1082792244SWarner Losh * 1182792244SWarner Losh * This program is distributed in the hope that it will be useful, 1282792244SWarner Losh * but WITHOUT ANY WARRANTY; without even the implied warranty of 1382792244SWarner Losh * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1482792244SWarner Losh * GNU General Public License for more details. 1582792244SWarner Losh * 1682792244SWarner Losh * You should have received a copy of the GNU General Public License 1782792244SWarner Losh * along with this program; if not, see <http://www.gnu.org/licenses/>. 1882792244SWarner Losh */ 19*9c092804SMarkus Armbruster 20*9c092804SMarkus Armbruster #ifndef TARGET_OS_VMPARAM_H 21*9c092804SMarkus Armbruster #define TARGET_OS_VMPARAM_H 2282792244SWarner Losh 2382792244SWarner Losh #include "target_arch_vmparam.h" 2482792244SWarner Losh 2582792244SWarner Losh /* Compare to sys/exec.h */ 2682792244SWarner Losh struct target_ps_strings { 2782792244SWarner Losh abi_ulong ps_argvstr; 2882792244SWarner Losh uint32_t ps_nargvstr; 2982792244SWarner Losh abi_ulong ps_envstr; 3082792244SWarner Losh uint32_t ps_nenvstr; 3182792244SWarner Losh }; 3282792244SWarner Losh 3382792244SWarner Losh extern abi_ulong target_stkbas; 3482792244SWarner Losh extern abi_ulong target_stksiz; 3582792244SWarner Losh 3682792244SWarner Losh #define TARGET_PS_STRINGS ((target_stkbas + target_stksiz) - \ 3782792244SWarner Losh sizeof(struct target_ps_strings)) 3882792244SWarner Losh 39*9c092804SMarkus Armbruster #endif /* TARGET_OS_VMPARAM_H */ 40