From cf62d07e82a8a1e8ae48b4eb8f8e4040c482beef Mon Sep 17 00:00:00 2001 From: ragge Date: Wed, 2 Aug 2000 12:13:22 +0000 Subject: [PATCH] Fix bug that trashed the SPT if any copy* function were used before the first swtch(). --- sys/arch/vax/vax/subr.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/vax/vax/subr.s b/sys/arch/vax/vax/subr.s index 3c80a2c37c02..1a6f268ded99 100644 --- a/sys/arch/vax/vax/subr.s +++ b/sys/arch/vax/vax/subr.s @@ -1,4 +1,4 @@ -/* $NetBSD: subr.s,v 1.51 2000/07/19 18:15:03 matt Exp $ */ +/* $NetBSD: subr.s,v 1.52 2000/08/02 12:13:22 ragge Exp $ */ /* * Copyright (c) 1994 Ludd, University of Lule}, Sweden. @@ -115,6 +115,7 @@ to: movw $0xfff,_C_LABEL(panic) # Save all regs in panic addl3 $USPACE,_C_LABEL(proc0paddr),r0 # Get kernel stack top mtpr r0,$PR_KSP # put in IPR KSP movl r0,_C_LABEL(Sysmap) # SPT start addr after KSP + movl _C_LABEL(proc0paddr),r0 # get PCB virtual address movab IFTRAP(r0),4(r0) # Save trap address in ESP mtpr 4(r0),$PR_ESP # Put it in ESP also