1176770Sraj/*- 2176770Sraj * Copyright (C) 2006 Semihalf, Rafal Jaworowski <raj@semihalf.com> 3176770Sraj * All rights reserved. 4176770Sraj * 5176770Sraj * Redistribution and use in source and binary forms, with or without 6176770Sraj * modification, are permitted provided that the following conditions 7176770Sraj * are met: 8176770Sraj * 1. Redistributions of source code must retain the above copyright 9176770Sraj * notice, this list of conditions and the following disclaimer. 10176770Sraj * 2. Redistributions in binary form must reproduce the above copyright 11176770Sraj * notice, this list of conditions and the following disclaimer in the 12176770Sraj * documentation and/or other materials provided with the distribution. 13176770Sraj * 3. The name of the author may not be used to endorse or promote products 14176770Sraj * derived from this software without specific prior written permission. 15176770Sraj * 16176770Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17176770Sraj * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18176770Sraj * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 19176770Sraj * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20176770Sraj * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 21176770Sraj * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22176770Sraj * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23176770Sraj * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24176770Sraj * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25176770Sraj * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26176770Sraj * 27176770Sraj * $FreeBSD$ 28176770Sraj */ 29176770Sraj 30176770Sraj#ifndef _POWERPC_TRAP_H_ 31176770Sraj#define _POWERPC_TRAP_H_ 32176770Sraj 33176770Sraj#define EXC_CRIT 0 34176770Sraj#define EXC_MCHK 1 35176770Sraj#define EXC_DSI 2 36176770Sraj#define EXC_ISI 3 37176770Sraj#define EXC_EXI 4 38176770Sraj#define EXC_ALI 5 39176770Sraj#define EXC_PGM 6 40176770Sraj#define EXC_FPU 7 /* e500: not supported */ 41176770Sraj#define EXC_SC 8 42176770Sraj#define EXC_APU 9 /* e500: not supported */ 43176770Sraj#define EXC_DECR 10 44176770Sraj#define EXC_FIT 11 45176770Sraj#define EXC_WDOG 12 46176770Sraj#define EXC_DTMISS 13 47176770Sraj#define EXC_ITMISS 14 48176770Sraj#define EXC_DEBUG 15 49176770Sraj 50176770Sraj#define EXC_SAU 32 /* e500-specific: SPE APU unavailable */ 51176770Sraj#define EXC_PERF 35 /* e500-specific: Performance monitor */ 52176770Sraj 53176770Sraj#define EXC_LAST 255 54176770Sraj 55233635Snwhitehorn#ifndef LOCORE 56233635Snwhitehornstruct trapframe; 57233635Snwhitehornvoid trap(struct trapframe *); 58233635Snwhitehorn#endif 59233635Snwhitehorn 60176770Sraj#endif /* _POWERPC_TRAP_H_ */ 61