From 25859481851cdc351e24dec4ad34b24923d60fcc Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 29 Mar 2024 21:20:03 +0000 Subject: [PATCH] STACKFRAME macro is always invoked on a well-formed 64-bit stack, no need to check for missing BIAS. ok claudio@ kettenis@ --- sys/arch/sparc64/sparc64/locore.s | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index 376ea82b7d0..2c134c2bb68 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.210 2024/03/29 21:18:19 miod Exp $ */ +/* $OpenBSD: locore.s,v 1.211 2024/03/29 21:20:03 miod Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -265,16 +265,11 @@ sun4u_mtp_patch_end: .text /* - * Handy stack conversion macros. - * Correctly switch to a 64-bit stack - * regardless of the current stack. + * Reserve the given room on stack. */ .macro STACKFRAME size save %sp, \size, %sp - add %sp, -BIAS, %o0 ! Convert to 64-bits - andcc %sp, 1, %g0 ! 64-bit stack? - movz %icc, %o0, %sp .endm -- 2.20.1