Deleted Added
full compact
ibcs2_util.h (107839) ibcs2_util.h (107849)
1
2/*
3 * Copyright (c) 1994 Christos Zoulas
4 * Copyright (c) 1995 Frank van der Linden
5 * Copyright (c) 1995 Scott Bartram
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * from: svr4_util.h,v 1.5 1994/11/18 02:54:31 christos Exp
31 * from: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp
32 *
1
2/*
3 * Copyright (c) 1994 Christos Zoulas
4 * Copyright (c) 1995 Frank van der Linden
5 * Copyright (c) 1995 Scott Bartram
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * from: svr4_util.h,v 1.5 1994/11/18 02:54:31 christos Exp
31 * from: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp
32 *
33 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_util.h 107839 2002-12-13 22:41:47Z alfred $
33 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_util.h 107849 2002-12-14 01:56:26Z alfred $
34 */
35
36/*
37 * This file is pretty much the same as Christos' svr4_util.h
38 * (for now).
39 */
40
41#ifndef _IBCS2_UTIL_H_

--- 5 unchanged lines hidden (view full) ---

47 */
48#include <vm/vm.h>
49#include <vm/pmap.h>
50#include <machine/vmparam.h>
51#include <sys/exec.h>
52#include <sys/sysent.h>
53#include <sys/proc.h>
54
34 */
35
36/*
37 * This file is pretty much the same as Christos' svr4_util.h
38 * (for now).
39 */
40
41#ifndef _IBCS2_UTIL_H_

--- 5 unchanged lines hidden (view full) ---

47 */
48#include <vm/vm.h>
49#include <vm/pmap.h>
50#include <machine/vmparam.h>
51#include <sys/exec.h>
52#include <sys/sysent.h>
53#include <sys/proc.h>
54
55#ifndef SCARG
56#define SCARG(p, x) (p)->x
57#endif
58
59static __inline caddr_t stackgap_init(void);
60static __inline void *stackgap_alloc(caddr_t *, size_t);
61
62static __inline caddr_t
63stackgap_init()
64{
65#define szsigcode (*(curthread->td_proc->p_sysent->sv_szsigcode))
66 return (caddr_t)(PS_STRINGS - szsigcode - SPARE_USRSPACE);

--- 34 unchanged lines hidden ---
55static __inline caddr_t stackgap_init(void);
56static __inline void *stackgap_alloc(caddr_t *, size_t);
57
58static __inline caddr_t
59stackgap_init()
60{
61#define szsigcode (*(curthread->td_proc->p_sysent->sv_szsigcode))
62 return (caddr_t)(PS_STRINGS - szsigcode - SPARE_USRSPACE);

--- 34 unchanged lines hidden ---