1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD$ 27 */ 28 29#ifndef _MACHINE_TRAP_H_ 30#define _MACHINE_TRAP_H_ 31 32#ifdef _KERNEL 33 34#define T_RESERVED 0 35#define T_INSTRUCTION_EXCEPTION 1 36#define T_INSTRUCTION_ERROR 2 37#define T_INSTRUCTION_PROTECTION 3 38#define T_ILLTRAP_INSTRUCTION 4 39#define T_ILLEGAL_INSTRUCTION 5 40#define T_PRIVILEGED_OPCODE 6 41#define T_FP_DISABLED 7 42#define T_FP_EXCEPTION_IEEE_754 8 43#define T_FP_EXCEPTION_OTHER 9 44#define T_TAG_OVERFLOW 10 45#define T_DIVISION_BY_ZERO 11 46#define T_DATA_EXCEPTION 12 47#define T_DATA_ERROR 13 48#define T_DATA_PROTECTION 14 49#define T_MEM_ADDRESS_NOT_ALIGNED 15 50#define T_PRIVILEGED_ACTION 16 51#define T_ASYNC_DATA_ERROR 17 52#define T_TRAP_INSTRUCTION_16 18 53#define T_TRAP_INSTRUCTION_17 19 54#define T_TRAP_INSTRUCTION_18 20 55#define T_TRAP_INSTRUCTION_19 21 56#define T_TRAP_INSTRUCTION_20 22 57#define T_TRAP_INSTRUCTION_21 23 58#define T_TRAP_INSTRUCTION_22 24 59#define T_TRAP_INSTRUCTION_23 25 60#define T_TRAP_INSTRUCTION_24 26 61#define T_TRAP_INSTRUCTION_25 27 62#define T_TRAP_INSTRUCTION_26 28 63#define T_TRAP_INSTRUCTION_27 29 64#define T_TRAP_INSTRUCTION_28 30 65#define T_TRAP_INSTRUCTION_29 31 66#define T_TRAP_INSTRUCTION_30 32 67#define T_TRAP_INSTRUCTION_31 33 68#define T_INSTRUCTION_MISS 34 69#define T_DATA_MISS 35 70 71#define T_INTERRUPT 36 72#define T_PA_WATCHPOINT 37 73#define T_VA_WATCHPOINT 38 74#define T_CORRECTED_ECC_ERROR 39 75#define T_SPILL 40 76#define T_FILL 41 77#define T_FILL_RET 42 78#define T_BREAKPOINT 43 79#define T_CLEAN_WINDOW 44 80#define T_RANGE_CHECK 45 81#define T_FIX_ALIGNMENT 46 82#define T_INTEGER_OVERFLOW 47 83#define T_SYSCALL 48 84#define T_RSTRWP_PHYS 49 85#define T_RSTRWP_VIRT 50 86#define T_KSTACK_FAULT 51 87 88#define T_MAX (T_KSTACK_FAULT + 1) 89 90#define T_KERNEL 64 91 92#ifndef LOCORE 93void sun4u_set_traptable(void *tba_addr); 94extern const char *const trap_msg[]; 95#endif 96 97#endif 98 99#endif /* !_MACHINE_TRAP_H_ */ 100