Mon Jul 20 03:22:39 2020 UTC ()
Expose MIPS_EBASE_CPUNUM.


(simonb)
diff -r1.69 -r1.70 src/sys/arch/mips/mips/genassym.cf

cvs diff -r1.69 -r1.70 src/sys/arch/mips/mips/genassym.cf (expand / switch to unified diff)

--- src/sys/arch/mips/mips/genassym.cf 2020/02/20 08:27:39 1.69
+++ src/sys/arch/mips/mips/genassym.cf 2020/07/20 03:22:39 1.70
@@ -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
175ifdef MIPS3_PG_ODDPG 175ifdef MIPS3_PG_ODDPG
176define MIPS3_PG_ODDPG MIPS3_PG_ODDPG 176define MIPS3_PG_ODDPG MIPS3_PG_ODDPG
177define V_MIPS3_PG_ODDPG ilog2(MIPS3_PG_ODDPG) 177define V_MIPS3_PG_ODDPG ilog2(MIPS3_PG_ODDPG)
178endif 178endif
179ifdef MIPS3_PG_NEXT 179ifdef MIPS3_PG_NEXT
180define MIPS3_PG_NEXT MIPS3_PG_NEXT 180define MIPS3_PG_NEXT MIPS3_PG_NEXT
181endif 181endif
182define V_MIPS3_PG_V ilog2(MIPS3_PG_V) 182define V_MIPS3_PG_V ilog2(MIPS3_PG_V)
183define V_MIPS3_PG_HVPN ilog2(__LOWEST_SET_BIT(MIPS3_PG_HVPN)) 183define V_MIPS3_PG_HVPN ilog2(__LOWEST_SET_BIT(MIPS3_PG_HVPN))
184define V_MIPS3_PG_ASID ilog2(__LOWEST_SET_BIT(MIPS3_PG_ASID)) 184define V_MIPS3_PG_ASID ilog2(__LOWEST_SET_BIT(MIPS3_PG_ASID))
185define S_MIPS3_PG_ASID ilog2(MIPS3_PG_ASID+1) 185define S_MIPS3_PG_ASID ilog2(MIPS3_PG_ASID+1)
186endif 186endif
187 187
 188define MIPS_EBASE_CPUNUM MIPS_EBASE_CPUNUM
 189
188define TF_SIZ sizeof(struct trapframe) 190define TF_SIZ sizeof(struct trapframe)
189define TF_REG_ZERO offsetof(struct trapframe, tf_regs[_R_ZERO]) 191define TF_REG_ZERO offsetof(struct trapframe, tf_regs[_R_ZERO])
190define TF_REG_AST offsetof(struct trapframe, tf_regs[_R_AST]) 192define TF_REG_AST offsetof(struct trapframe, tf_regs[_R_AST])
191define TF_REG_V0 offsetof(struct trapframe, tf_regs[_R_V0]) 193define TF_REG_V0 offsetof(struct trapframe, tf_regs[_R_V0])
192define TF_REG_V1 offsetof(struct trapframe, tf_regs[_R_V1]) 194define TF_REG_V1 offsetof(struct trapframe, tf_regs[_R_V1])
193define TF_REG_A0 offsetof(struct trapframe, tf_regs[_R_A0]) 195define TF_REG_A0 offsetof(struct trapframe, tf_regs[_R_A0])
194define TF_REG_A1 offsetof(struct trapframe, tf_regs[_R_A1]) 196define TF_REG_A1 offsetof(struct trapframe, tf_regs[_R_A1])
195define TF_REG_A2 offsetof(struct trapframe, tf_regs[_R_A2]) 197define TF_REG_A2 offsetof(struct trapframe, tf_regs[_R_A2])
196define TF_REG_A3 offsetof(struct trapframe, tf_regs[_R_A3]) 198define TF_REG_A3 offsetof(struct trapframe, tf_regs[_R_A3])
197define TF_REG_T0 offsetof(struct trapframe, tf_regs[_R_T0]) 199define TF_REG_T0 offsetof(struct trapframe, tf_regs[_R_T0])
198define TF_REG_T1 offsetof(struct trapframe, tf_regs[_R_T1]) 200define TF_REG_T1 offsetof(struct trapframe, tf_regs[_R_T1])
199define TF_REG_T2 offsetof(struct trapframe, tf_regs[_R_T2]) 201define TF_REG_T2 offsetof(struct trapframe, tf_regs[_R_T2])
200define TF_REG_T3 offsetof(struct trapframe, tf_regs[_R_T3]) 202define TF_REG_T3 offsetof(struct trapframe, tf_regs[_R_T3])