From 3611d66f77b52d6306cefef71a26da7c3ddfd4a1 Mon Sep 17 00:00:00 2001 From: ad Date: Thu, 16 Aug 2007 17:00:05 +0000 Subject: [PATCH] cpu_switchto: fix a well dodgy bit of assembly that broke RAS. --- sys/arch/i386/i386/locore.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/locore.S b/sys/arch/i386/i386/locore.S index bfb82ffc2bae..eb43ccb2bdf2 100644 --- a/sys/arch/i386/i386/locore.S +++ b/sys/arch/i386/i386/locore.S @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.48 2007/05/17 14:51:21 yamt Exp $ */ +/* $NetBSD: locore.S,v 1.49 2007/08/16 17:00:05 ad Exp $ */ /*- * Copyright (c) 1998, 2000, 2004, 2006, 2007 The NetBSD Foundation, Inc. @@ -792,7 +792,8 @@ ENTRY(cpu_switchto) addl $8,%esp cmpl $-1,%eax je 2b - movl %eax,TF_EIP(%ebx) + movl L_MD_REGS(%edi),%ecx + movl %eax,TF_EIP(%ecx) jmp 2b /*