stack.h revision 174195
11541Srgrimes/*-
21541Srgrimes * Mach Operating System
31541Srgrimes * Copyright (c) 1991,1990 Carnegie Mellon University
41541Srgrimes * All Rights Reserved.
51541Srgrimes *
61541Srgrimes * Permission to use, copy, modify and distribute this software and its
71541Srgrimes * documentation is hereby granted, provided that both the copyright
81541Srgrimes * notice and this permission notice appear in all copies of the
91541Srgrimes * software, derivative works or modified versions, and any portions
101541Srgrimes * thereof, and that both notices appear in supporting documentation.
111541Srgrimes *
121541Srgrimes * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
131541Srgrimes * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
141541Srgrimes * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
151541Srgrimes *
161541Srgrimes * Carnegie Mellon requests users of this software to return to
171541Srgrimes *
181541Srgrimes *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
191541Srgrimes *  School of Computer Science
201541Srgrimes *  Carnegie Mellon University
211541Srgrimes *  Pittsburgh PA 15213-3890
221541Srgrimes *
231541Srgrimes * any improvements or extensions that they make and grant Carnegie the
241541Srgrimes * rights to redistribute these changes.
251541Srgrimes *
261541Srgrimes * $FreeBSD: head/sys/i386/include/stack.h 174195 2007-12-02 20:40:35Z rwatson $
271541Srgrimes */
281541Srgrimes
291541Srgrimes#ifndef _MACHINE_STACK_H_
301541Srgrimes#define	_MACHINE_STACK_H_
311541Srgrimes
321541Srgrimes/*
331541Srgrimes * Stack trace.
3450477Speter */
351541Srgrimes#define INKERNEL(va)	(((vm_offset_t)(va)) >= USRSTACK && \
361541Srgrimes	    ((vm_offset_t)(va)) < VM_MAX_KERNEL_ADDRESS)
372168Spaul
384507Sbdestruct i386_frame {
392168Spaul	struct i386_frame	*f_frame;
4079103Sbrooks	int			 f_retaddr;
4179103Sbrooks	int			 f_arg0;
421541Srgrimes};
4334750Speter
4472093Sasmodai#endif /* !_MACHINE_STACK_H_ */
4534750Speter