Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/arch/sparc/sparc Pull up revision 1.154 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/cdb8931a265e
branches:  netbsd-2-0
changeset: 560533:cdb8931a265e
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Apr 24 18:28:24 2004 +0000

description:
Pull up revision 1.154 (requested by pk in ticket #179)

Many fixes for issues with sparc multi-processor support (includes
fixes to make HyperSPARC MP work).

diffstat:

 sys/arch/sparc/sparc/trap.c |  17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 799af2ce7060 -r cdb8931a265e sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c       Sat Apr 24 18:27:07 2004 +0000
+++ b/sys/arch/sparc/sparc/trap.c       Sat Apr 24 18:28:24 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.153 2004/03/14 01:08:48 cl Exp $ */
+/*     $NetBSD: trap.c,v 1.153.2.1 2004/04/24 18:28:24 jdc Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.153 2004/03/14 01:08:48 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.153.2.1 2004/04/24 18:28:24 jdc Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ktrace.h"
@@ -487,8 +487,19 @@
        case T_AST:
                break;  /* the work is all in userret() */
 
+       case T_UNIMPLFLUSH:
+               /* Invalidate the entire I-cache */
+#if defined(MULTIPROCESSOR)
+               /* Broadcast to all CPUs */
+               XCALL0(*cpuinfo.pure_vcache_flush, CPUSET_ALL);
+#else
+               (*cpuinfo.pure_vcache_flush)();
+#endif
+               ADVANCE;
+               break;
+
        case T_ILLINST:
-       case T_UNIMPLFLUSH:
+               /* Note: Cypress generates a T_ILLINST on FLUSH instructions */
                if ((sig = emulinstr(pc, tf)) == 0) {
                        ADVANCE;
                        break;



Home | Main Index | Thread Index | Old Index