STACKFRAME macro is always invoked on a well-formed 64-bit stack, no need
authormiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:20:03 +0000 (21:20 +0000)
committermiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:20:03 +0000 (21:20 +0000)
to check for missing BIAS.

ok claudio@ kettenis@

sys/arch/sparc64/sparc64/locore.s

index 376ea82..2c134c2 100644 (file)
@@ -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