From 82f77a0dcccf653f5e071da1b69a02a545c2a4e5 Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 8 Apr 2024 19:59:28 +0000 Subject: [PATCH] Fix sun4v patching of sp_tlb_flush_ctx() to pass flags in the right register. ok kettenis@ --- sys/arch/sparc64/sparc64/autoconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index e2ba39fdff3..0909be5fb7d 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.147 2024/03/29 21:17:13 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.148 2024/04/08 19:59:28 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -387,7 +387,7 @@ bootstrap(int nctx) disp = (vaddr_t)hv_mmu_demap_ctx - (vaddr_t)sp_tlb_flush_ctx; insn = 0x10800000 | disp >> 2; /* ba hv_mmu_demap_ctx */ ((u_int32_t *)sp_tlb_flush_ctx)[0] = insn; - insn = 0x94102003; /* mov MAP_ITLB|MAP_DTLB, %o2 */ + insn = 0x92102003; /* mov MAP_ITLB|MAP_DTLB, %o1 */ ((u_int32_t *)sp_tlb_flush_ctx)[1] = insn; { -- 2.20.1