Module Name: src Committed By: skrll Date: Sat Jan 22 10:58:44 UTC 2011
Modified Files: src/sys/lib/libkern/arch/hppa: bcopy.S Log Message: Fix MULTIPROCESSOR curlwp/curcpu handling... missed in previous commit. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/lib/libkern/arch/hppa/bcopy.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libkern/arch/hppa/bcopy.S diff -u src/sys/lib/libkern/arch/hppa/bcopy.S:1.11 src/sys/lib/libkern/arch/hppa/bcopy.S:1.12 --- src/sys/lib/libkern/arch/hppa/bcopy.S:1.11 Sat Mar 20 23:31:30 2010 +++ src/sys/lib/libkern/arch/hppa/bcopy.S Sat Jan 22 10:58:44 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bcopy.S,v 1.11 2010/03/20 23:31:30 chs Exp $ */ +/* $NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $ */ /* * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -33,15 +33,18 @@ * Copy routines for NetBSD/hppa. */ +#include "opt_multiprocessor.h" + #undef _LOCORE #define _LOCORE /* XXX fredette - unfortunate */ +#include <machine/cpu.h> #include <machine/asm.h> #include <machine/frame.h> #include <machine/reg.h> #if defined(LIBC_SCCS) && !defined(lint) -RCSID("$NetBSD: bcopy.S,v 1.11 2010/03/20 23:31:30 chs Exp $") +RCSID("$NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $") #endif /* LIBC_SCCS and not lint */ /* @@ -498,7 +501,7 @@ /* * Setup the fault handler, which will fill in %ret0 if triggered. */ - mfctl CR_CURLWP, %r31 + GET_CURLWP(%r31) #ifdef DIAGNOSTIC comb,<>,n %r0, %r31, Lspcopy_curlwp_ok ldil L%panic, %r1