| 1 | /* |
| 2 | * FreeBSD VM parameters definitions |
| 3 | * |
| 4 | * Copyright (c) 2013 Stacey D. Son |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | #ifndef TARGET_OS_VMPARAM_H |
| 9 | #define TARGET_OS_VMPARAM_H |
| 10 | |
| 11 | #include "target_arch_vmparam.h" |
| 12 | |
| 13 | /* Compare to sys/exec.h */ |
| 14 | struct target_ps_strings { |
| 15 | abi_ulong ps_argvstr; |
| 16 | uint32_t ps_nargvstr; |
| 17 | abi_ulong ps_envstr; |
| 18 | uint32_t ps_nenvstr; |
| 19 | }; |
| 20 | |
| 21 | extern abi_ulong target_stkbas; |
| 22 | extern abi_ulong target_stksiz; |
| 23 | |
| 24 | #define TARGET_PS_STRINGS ((target_stkbas + target_stksiz) - \ |
| 25 | sizeof(struct target_ps_strings)) |
| 26 | |
| 27 | #endif /* TARGET_OS_VMPARAM_H */ |