| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: cpu.h,v 1.38 2010/03/06 21:22:42 skrll Exp $ */ | | 1 | /* $NetBSD: cpu.h,v 1.39 2010/03/07 08:44:28 skrll Exp $ */ |
2 | | | 2 | |
3 | /* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */ | | 3 | /* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */ |
4 | | | 4 | |
5 | /* | | 5 | /* |
6 | * Copyright (c) 2000-2004 Michael Shalayeff | | 6 | * Copyright (c) 2000-2004 Michael Shalayeff |
7 | * All rights reserved. | | 7 | * All rights reserved. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -147,35 +147,39 @@ extern register_t kpsw; | | | @@ -147,35 +147,39 @@ extern register_t kpsw; |
147 | #define HPPA_FPU_RM 0x00000600 | | 147 | #define HPPA_FPU_RM 0x00000600 |
148 | #define HPPA_FPU_CQ 0x00fff800 | | 148 | #define HPPA_FPU_CQ 0x00fff800 |
149 | #define HPPA_FPU_C 0x04000000 | | 149 | #define HPPA_FPU_C 0x04000000 |
150 | #define HPPA_FPU_FLSH 27 | | 150 | #define HPPA_FPU_FLSH 27 |
151 | #define HPPA_FPU_INIT (0) | | 151 | #define HPPA_FPU_INIT (0) |
152 | #define HPPA_FPU_FORK(s) ((s) & ~((uint64_t)(HPPA_FPU_XMASK) << 32)) | | 152 | #define HPPA_FPU_FORK(s) ((s) & ~((uint64_t)(HPPA_FPU_XMASK) << 32)) |
153 | | | 153 | |
154 | /* | | 154 | /* |
155 | * definitions of cpu-dependent requirements | | 155 | * definitions of cpu-dependent requirements |
156 | * referenced in generic code | | 156 | * referenced in generic code |
157 | */ | | 157 | */ |
158 | #if defined(HP8000_CPU) || defined(HP8200_CPU) || \ | | 158 | #if defined(HP8000_CPU) || defined(HP8200_CPU) || \ |
159 | defined(HP8500_CPU) || defined(HP8600_CPU) | | 159 | defined(HP8500_CPU) || defined(HP8600_CPU) |
| | | 160 | |
160 | /* PA2.0 aliases */ | | 161 | /* PA2.0 aliases */ |
161 | #define HPPA_PGALIAS 0x00400000 | | 162 | #define HPPA_PGALIAS 0x00400000 |
162 | #define HPPA_PGAMASK 0xffc00000 /* PA bits 0-9 not used in index */ | | 163 | #define HPPA_PGAMASK 0xffc00000 /* PA bits 0-9 not used in index */ |
163 | #define HPPA_PGAOFF 0x003fffff | | 164 | #define HPPA_PGAOFF 0x003fffff |
| | | 165 | |
164 | #else | | 166 | #else |
| | | 167 | |
165 | /* PA1.x aliases */ | | 168 | /* PA1.x aliases */ |
166 | #define HPPA_PGALIAS 0x00100000 | | 169 | #define HPPA_PGALIAS 0x00100000 |
167 | #define HPPA_PGAMASK 0xfff00000 /* PA bits 0-11 not used in index */ | | 170 | #define HPPA_PGAMASK 0xfff00000 /* PA bits 0-11 not used in index */ |
168 | #define HPPA_PGAOFF 0x000fffff | | 171 | #define HPPA_PGAOFF 0x000fffff |
| | | 172 | |
169 | #endif | | 173 | #endif |
170 | | | 174 | |
171 | #define HPPA_SPAMASK 0xf0f0f000 /* PA bits 0-3,8-11,16-19 not used */ | | 175 | #define HPPA_SPAMASK 0xf0f0f000 /* PA bits 0-3,8-11,16-19 not used */ |
172 | | | 176 | |
173 | #define HPPA_IOSPACE 0xf0000000 | | 177 | #define HPPA_IOSPACE 0xf0000000 |
174 | #define HPPA_IOLEN 0x10000000 | | 178 | #define HPPA_IOLEN 0x10000000 |
175 | #define HPPA_PDC_LOW 0xef000000 | | 179 | #define HPPA_PDC_LOW 0xef000000 |
176 | #define HPPA_PDC_HIGH 0xf1000000 | | 180 | #define HPPA_PDC_HIGH 0xf1000000 |
177 | #define HPPA_IOBCAST 0xfffc0000 | | 181 | #define HPPA_IOBCAST 0xfffc0000 |
178 | #define HPPA_LBCAST 0xfffc0000 | | 182 | #define HPPA_LBCAST 0xfffc0000 |
179 | #define HPPA_GBCAST 0xfffe0000 | | 183 | #define HPPA_GBCAST 0xfffe0000 |
180 | #define HPPA_FPA 0xfff80000 | | 184 | #define HPPA_FPA 0xfff80000 |
181 | #define HPPA_FLEX_DATA 0xfff80001 | | 185 | #define HPPA_FLEX_DATA 0xfff80001 |