| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: genassym.cf,v 1.69 2020/02/20 08:27:39 skrll Exp $ | | 1 | # $NetBSD: genassym.cf,v 1.70 2020/07/20 03:22:39 simonb Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 1992, 1993 | | 3 | # Copyright (c) 1992, 1993 |
4 | # The Regents of the University of California. All rights reserved. | | 4 | # The Regents of the University of California. All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to Berkeley by | | 6 | # This code is derived from software contributed to Berkeley by |
7 | # Ralph Campbell. | | 7 | # Ralph Campbell. |
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 |
| @@ -175,26 +175,28 @@ define MIPS3_PG_ASID MIPS3_PG_ASID | | | @@ -175,26 +175,28 @@ define MIPS3_PG_ASID MIPS3_PG_ASID |
175 | ifdef MIPS3_PG_ODDPG | | 175 | ifdef MIPS3_PG_ODDPG |
176 | define MIPS3_PG_ODDPG MIPS3_PG_ODDPG | | 176 | define MIPS3_PG_ODDPG MIPS3_PG_ODDPG |
177 | define V_MIPS3_PG_ODDPG ilog2(MIPS3_PG_ODDPG) | | 177 | define V_MIPS3_PG_ODDPG ilog2(MIPS3_PG_ODDPG) |
178 | endif | | 178 | endif |
179 | ifdef MIPS3_PG_NEXT | | 179 | ifdef MIPS3_PG_NEXT |
180 | define MIPS3_PG_NEXT MIPS3_PG_NEXT | | 180 | define MIPS3_PG_NEXT MIPS3_PG_NEXT |
181 | endif | | 181 | endif |
182 | define V_MIPS3_PG_V ilog2(MIPS3_PG_V) | | 182 | define V_MIPS3_PG_V ilog2(MIPS3_PG_V) |
183 | define V_MIPS3_PG_HVPN ilog2(__LOWEST_SET_BIT(MIPS3_PG_HVPN)) | | 183 | define V_MIPS3_PG_HVPN ilog2(__LOWEST_SET_BIT(MIPS3_PG_HVPN)) |
184 | define V_MIPS3_PG_ASID ilog2(__LOWEST_SET_BIT(MIPS3_PG_ASID)) | | 184 | define V_MIPS3_PG_ASID ilog2(__LOWEST_SET_BIT(MIPS3_PG_ASID)) |
185 | define S_MIPS3_PG_ASID ilog2(MIPS3_PG_ASID+1) | | 185 | define S_MIPS3_PG_ASID ilog2(MIPS3_PG_ASID+1) |
186 | endif | | 186 | endif |
187 | | | 187 | |
| | | 188 | define MIPS_EBASE_CPUNUM MIPS_EBASE_CPUNUM |
| | | 189 | |
188 | define TF_SIZ sizeof(struct trapframe) | | 190 | define TF_SIZ sizeof(struct trapframe) |
189 | define TF_REG_ZERO offsetof(struct trapframe, tf_regs[_R_ZERO]) | | 191 | define TF_REG_ZERO offsetof(struct trapframe, tf_regs[_R_ZERO]) |
190 | define TF_REG_AST offsetof(struct trapframe, tf_regs[_R_AST]) | | 192 | define TF_REG_AST offsetof(struct trapframe, tf_regs[_R_AST]) |
191 | define TF_REG_V0 offsetof(struct trapframe, tf_regs[_R_V0]) | | 193 | define TF_REG_V0 offsetof(struct trapframe, tf_regs[_R_V0]) |
192 | define TF_REG_V1 offsetof(struct trapframe, tf_regs[_R_V1]) | | 194 | define TF_REG_V1 offsetof(struct trapframe, tf_regs[_R_V1]) |
193 | define TF_REG_A0 offsetof(struct trapframe, tf_regs[_R_A0]) | | 195 | define TF_REG_A0 offsetof(struct trapframe, tf_regs[_R_A0]) |
194 | define TF_REG_A1 offsetof(struct trapframe, tf_regs[_R_A1]) | | 196 | define TF_REG_A1 offsetof(struct trapframe, tf_regs[_R_A1]) |
195 | define TF_REG_A2 offsetof(struct trapframe, tf_regs[_R_A2]) | | 197 | define TF_REG_A2 offsetof(struct trapframe, tf_regs[_R_A2]) |
196 | define TF_REG_A3 offsetof(struct trapframe, tf_regs[_R_A3]) | | 198 | define TF_REG_A3 offsetof(struct trapframe, tf_regs[_R_A3]) |
197 | define TF_REG_T0 offsetof(struct trapframe, tf_regs[_R_T0]) | | 199 | define TF_REG_T0 offsetof(struct trapframe, tf_regs[_R_T0]) |
198 | define TF_REG_T1 offsetof(struct trapframe, tf_regs[_R_T1]) | | 200 | define TF_REG_T1 offsetof(struct trapframe, tf_regs[_R_T1]) |
199 | define TF_REG_T2 offsetof(struct trapframe, tf_regs[_R_T2]) | | 201 | define TF_REG_T2 offsetof(struct trapframe, tf_regs[_R_T2]) |
200 | define TF_REG_T3 offsetof(struct trapframe, tf_regs[_R_T3]) | | 202 | define TF_REG_T3 offsetof(struct trapframe, tf_regs[_R_T3]) |