Deleted Added
full compact
trap.h (275268) trap.h (277334)
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 275268 2014-11-29 20:54:33Z jhibbits $
32 * $FreeBSD: head/sys/powerpc/include/trap.h 277334 2015-01-18 18:32:43Z nwhitehorn $
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 */

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

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
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 */

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

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
126/* Magic pointer to store TOC base for trap handlers on ppc64 */
127#define TRAP_TOCBASE 0x1f8
128
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_ */
129#ifndef LOCORE
130struct trapframe;
131struct pcb;
132void trap(struct trapframe *);
133int ppc_instr_emulate(struct trapframe *, struct pcb *);
134#endif
135
136#endif /* _POWERPC_TRAP_H_ */