Deleted Added
full compact
spr.h (192067) spr.h (192109)
1/*-
2 * Copyright (c) 2001 The NetBSD Foundation, Inc.
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

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

26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $NetBSD: spr.h,v 1.25 2002/08/14 15:38:40 matt Exp $
1/*-
2 * Copyright (c) 2001 The NetBSD Foundation, Inc.
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

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

26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $NetBSD: spr.h,v 1.25 2002/08/14 15:38:40 matt Exp $
34 * $FreeBSD: head/sys/powerpc/include/spr.h 192067 2009-05-14 00:34:26Z nwhitehorn $
34 * $FreeBSD: head/sys/powerpc/include/spr.h 192109 2009-05-14 16:48:25Z raj $
35 */
36#ifndef _POWERPC_SPR_H_
37#define _POWERPC_SPR_H_
38
39#ifndef _LOCORE
40#define mtspr(reg, val) \
41 __asm __volatile("mtspr %0,%1" : : "K"(reg), "r"(val))
42#define mfspr(reg) \

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

124#define SPR_SPRG2 0x112 /* 468 SPR General 2 */
125#define SPR_SPRG3 0x113 /* 468 SPR General 3 */
126#define SPR_SPRG4 0x114 /* 4.. SPR General 4 */
127#define SPR_SPRG5 0x115 /* 4.. SPR General 5 */
128#define SPR_SPRG6 0x116 /* 4.. SPR General 6 */
129#define SPR_SPRG7 0x117 /* 4.. SPR General 7 */
130#define SPR_ASR 0x118 /* ... Address Space Register (PPC64) */
131#define SPR_EAR 0x11a /* .68 External Access Register */
35 */
36#ifndef _POWERPC_SPR_H_
37#define _POWERPC_SPR_H_
38
39#ifndef _LOCORE
40#define mtspr(reg, val) \
41 __asm __volatile("mtspr %0,%1" : : "K"(reg), "r"(val))
42#define mfspr(reg) \

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

124#define SPR_SPRG2 0x112 /* 468 SPR General 2 */
125#define SPR_SPRG3 0x113 /* 468 SPR General 3 */
126#define SPR_SPRG4 0x114 /* 4.. SPR General 4 */
127#define SPR_SPRG5 0x115 /* 4.. SPR General 5 */
128#define SPR_SPRG6 0x116 /* 4.. SPR General 6 */
129#define SPR_SPRG7 0x117 /* 4.. SPR General 7 */
130#define SPR_ASR 0x118 /* ... Address Space Register (PPC64) */
131#define SPR_EAR 0x11a /* .68 External Access Register */
132#define SPR_TBL 0x11c /* 468 Time Base Lower */
133#define SPR_TBU 0x11d /* 468 Time Base Upper */
134#define SPR_PVR 0x11f /* 468 Processor Version Register */
135#define MPC601 0x0001
136#define MPC603 0x0003
137#define MPC604 0x0004
138#define MPC602 0x0005
139#define MPC603e 0x0006
140#define MPC603ev 0x0007
141#define MPC750 0x0008

--- 533 unchanged lines hidden ---
132#define SPR_PVR 0x11f /* 468 Processor Version Register */
133#define MPC601 0x0001
134#define MPC603 0x0003
135#define MPC604 0x0004
136#define MPC602 0x0005
137#define MPC603e 0x0006
138#define MPC603ev 0x0007
139#define MPC750 0x0008

--- 533 unchanged lines hidden ---