Deleted Added
full compact
trap.h (258259) trap.h (275268)
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: trap.h,v 1.7 2002/02/22 13:51:40 kleink Exp $
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: trap.h,v 1.7 2002/02/22 13:51:40 kleink Exp $
32 * $FreeBSD: head/sys/powerpc/include/trap.h 258259 2013-11-17 15:12:03Z nwhitehorn $
32 * $FreeBSD: head/sys/powerpc/include/trap.h 275268 2014-11-29 20:54:33Z jhibbits $
33 */
34
35#ifndef _POWERPC_TRAP_H_
36#define _POWERPC_TRAP_H_
37
38#define EXC_RSVD 0x0000 /* Reserved */
39#define EXC_RST 0x0100 /* Reset; all but IBM4xx */
40#define EXC_MCHK 0x0200 /* Machine Check */

--- 74 unchanged lines hidden (view full) ---

115 * 2.05.
116 */
117
118#define EXC_PGM_FPENABLED (1UL << 20)
119#define EXC_PGM_ILLEGAL (1UL << 19)
120#define EXC_PGM_PRIV (1UL << 18)
121#define EXC_PGM_TRAP (1UL << 17)
122
33 */
34
35#ifndef _POWERPC_TRAP_H_
36#define _POWERPC_TRAP_H_
37
38#define EXC_RSVD 0x0000 /* Reserved */
39#define EXC_RST 0x0100 /* Reset; all but IBM4xx */
40#define EXC_MCHK 0x0200 /* Machine Check */

--- 74 unchanged lines hidden (view full) ---

115 * 2.05.
116 */
117
118#define EXC_PGM_FPENABLED (1UL << 20)
119#define EXC_PGM_ILLEGAL (1UL << 19)
120#define EXC_PGM_PRIV (1UL << 18)
121#define EXC_PGM_TRAP (1UL << 17)
122
123/* DTrace trap opcode. */
124#define EXC_DTRACE 0x7c810808
125
123#ifndef LOCORE
124struct trapframe;
125struct pcb;
126void trap(struct trapframe *);
127int ppc_instr_emulate(struct trapframe *, struct pcb *);
128#endif
129
130#endif /* _POWERPC_TRAP_H_ */
126#ifndef LOCORE
127struct trapframe;
128struct pcb;
129void trap(struct trapframe *);
130int ppc_instr_emulate(struct trapframe *, struct pcb *);
131#endif
132
133#endif /* _POWERPC_TRAP_H_ */