1295367Sdes/*- 2276707Sdes * Copyright (c) 2001 Jake Burkholder. 3276707Sdes * All rights reserved. 4276707Sdes * 5276707Sdes * Redistribution and use in source and binary forms, with or without 6276707Sdes * modification, are permitted provided that the following conditions 7276707Sdes * are met: 8276707Sdes * 1. Redistributions of source code must retain the above copyright 9276707Sdes * notice, this list of conditions and the following disclaimer. 10276707Sdes * 2. Redistributions in binary form must reproduce the above copyright 11276707Sdes * notice, this list of conditions and the following disclaimer in the 12276707Sdes * documentation and/or other materials provided with the distribution. 13276707Sdes * 14276707Sdes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15276707Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16276707Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17276707Sdes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18276707Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19276707Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20276707Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21276707Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22276707Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23276707Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24276707Sdes * SUCH DAMAGE. 25276707Sdes * 26276707Sdes * $FreeBSD$ 27276707Sdes */ 28276707Sdes 29276707Sdes#ifndef _MACHINE_STACK_H_ 30276707Sdes#define _MACHINE_STACK_H_ 31276707Sdes 32276707Sdesextern char tl_trap_begin[]; 33276707Sdesextern char tl_trap_end[]; 34295367Sdesextern char tl_text_begin[]; 35276707Sdesextern char tl_text_end[]; 36276707Sdes 37276707Sdes#define INKERNEL(va) \ 38276707Sdes ((va) >= VM_MIN_KERNEL_ADDRESS && (va) <= VM_MAX_KERNEL_ADDRESS) 39276707Sdes 40276707Sdes#endif /* !_MACHINE_STACK_H_ */ 41276707Sdes