diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2020-07-22 08:04:42 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2020-07-22 08:04:42 +0000 |
commit | 760c518bb3ca6f3c923dfaa732402fa9b3054796 (patch) | |
tree | fa7a4d46487479da2cc0b306bebbe7f980e7b192 /sys/arch | |
parent | fae9b2fff18f47ef3d47f3348b88816ad2fe1375 (diff) |
Use CPU_IS_PRIMARY macro in cpuattach() on mips64.
OK visa@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c index d8ce5cdcc24..a485808b4b5 100644 --- a/sys/arch/mips64/mips64/cpu.c +++ b/sys/arch/mips64/mips64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.76 2020/07/15 08:24:29 fcambus Exp $ */ +/* $OpenBSD: cpu.c,v 1.77 2020/07/22 08:04:41 fcambus Exp $ */ /* * Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se) @@ -121,7 +121,7 @@ cpuattach(struct device *parent, struct device *dev, void *aux) * instead. * XXX The MP boot sequence needs to be reworked to avoid this. */ - if (!ISSET(ci->ci_flags, CPUF_PRIMARY)) { + if (!CPU_IS_PRIMARY(ci)) { ci->ci_l1inst = cpu_info_primary.ci_l1inst; ci->ci_l1data = cpu_info_primary.ci_l1data; ci->ci_l2 = cpu_info_primary.ci_l2; |