provided by the PROM gets flushed out of the TLB before we install our own
trap table. Makes RAMDISK kernels work on T2 systems.
-/* $OpenBSD: locore.s,v 1.147 2008/07/21 13:30:05 art Exp $ */
+/* $OpenBSD: locore.s,v 1.148 2008/07/25 14:53:38 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
_C_LABEL(u0): .xword 0
estack0: .xword 0
+/*
+ * This stack is used for bootstrapping and spinning up CPUs.
+ */
+ .space 4096
+ .align 16
+tmpstack:
+
#ifdef DEBUG
/*
* This stack is used when we detect kernel stack corruption.
membar #Sync
#endif /* 0 */
+ /*
+ * Switch to temporary stack.
+ */
+ set tmpstack-CC64FSZ-BIAS, %sp
+
/*
* Ready to run C code; finish bootstrap.
*/
#ifdef MULTIPROCESSOR
- .data
- .space 2048
- _ALIGN
-tmpstack:
- .text
-
ENTRY(cpu_mp_startup)
mov %o0, %g2