1174195Srwatson/*-
2174195Srwatson * Mach Operating System
3174195Srwatson * Copyright (c) 1991,1990 Carnegie Mellon University
4174195Srwatson * All Rights Reserved.
5174195Srwatson *
6174195Srwatson * Permission to use, copy, modify and distribute this software and its
7174195Srwatson * documentation is hereby granted, provided that both the copyright
8174195Srwatson * notice and this permission notice appear in all copies of the
9174195Srwatson * software, derivative works or modified versions, and any portions
10174195Srwatson * thereof, and that both notices appear in supporting documentation.
11174195Srwatson *
12174195Srwatson * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13174195Srwatson * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14174195Srwatson * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15174195Srwatson *
16174195Srwatson * Carnegie Mellon requests users of this software to return to
17174195Srwatson *
18174195Srwatson *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
19174195Srwatson *  School of Computer Science
20174195Srwatson *  Carnegie Mellon University
21174195Srwatson *  Pittsburgh PA 15213-3890
22174195Srwatson *
23174195Srwatson * any improvements or extensions that they make and grant Carnegie the
24174195Srwatson * rights to redistribute these changes.
25174195Srwatson *
26174195Srwatson * $FreeBSD$
27174195Srwatson */
28174195Srwatson
29174195Srwatson#ifndef _MACHINE_STACK_H_
30174195Srwatson#define	_MACHINE_STACK_H_
31174195Srwatson
32174195Srwatson/*
33174195Srwatson * Stack trace.
34174195Srwatson */
35174195Srwatson#define	INKERNEL(va) (((va) >= DMAP_MIN_ADDRESS && (va) < DMAP_MAX_ADDRESS) \
36179886Salc	    || ((va) >= VM_MIN_KERNEL_ADDRESS && (va) < VM_MAX_KERNEL_ADDRESS))
37174195Srwatson
38174195Srwatsonstruct amd64_frame {
39174195Srwatson	struct amd64_frame	*f_frame;
40174195Srwatson	long			f_retaddr;
41174195Srwatson	long			f_arg0;
42174195Srwatson};
43174195Srwatson
44174195Srwatson#endif /* !_MACHINE_STACK_H_ */
45