/*-1* SPDX-License-Identifier: BSD-3-Clause2*3* Copyright (c) 1998-1999 Andrew Gallatin4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer11* in this position and unchanged.12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15* 3. The name of the author may not be used to endorse or promote products16* derived from this software withough specific prior written permission17*18* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR19* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES20* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.21* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,22* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT23* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,24* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY25* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT26* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF27* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.28*/2930#ifndef _COMPAT_IA32_IA32_UTIL_H31#define _COMPAT_IA32_IA32_UTIL_H3233#include <vm/vm.h>34#include <vm/vm_param.h>35#include <vm/pmap.h>3637#include <sys/exec.h>38#include <sys/sysent.h>39#include <sys/cdefs.h>4041#define FREEBSD32_MAXUSER ((1ul << 32) - IA32_PAGE_SIZE)42#define FREEBSD32_MINUSER 043#define FREEBSD32_SHAREDPAGE (FREEBSD32_MAXUSER - IA32_PAGE_SIZE)44#define FREEBSD32_USRSTACK FREEBSD32_SHAREDPAGE4546#define IA32_PAGE_SIZE 409647#define IA32_MAXDSIZ (512*1024*1024) /* 512MB */48#define IA32_MAXSSIZ (64*1024*1024) /* 64MB */49#define IA32_MAXVMEM 0 /* Unlimited */5051struct syscall_args;52int ia32_fetch_syscall_args(struct thread *td);53void ia32_set_syscall_retval(struct thread *, int);54void ia32_fixlimit(struct rlimit *rl, int which);5556#endif /* _COMPAT_IA32_IA32_UTIL_H */575859