Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea Call cpu_fixup_stubs at the end of oea_...



details:   https://anonhg.NetBSD.org/src/rev/14e17c44cc24
branches:  trunk
changeset: 766204:14e17c44cc24
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 18 20:34:39 2011 +0000

description:
Call cpu_fixup_stubs at the end of oea_machdep

diffstat:

 sys/arch/powerpc/oea/oea_machdep.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 8c724c635ffa -r 14e17c44cc24 sys/arch/powerpc/oea/oea_machdep.c
--- a/sys/arch/powerpc/oea/oea_machdep.c        Sat Jun 18 20:29:56 2011 +0000
+++ b/sys/arch/powerpc/oea/oea_machdep.c        Sat Jun 18 20:34:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oea_machdep.c,v 1.56 2011/01/18 02:25:42 matt Exp $    */
+/*     $NetBSD: oea_machdep.c,v 1.57 2011/06/18 20:34:39 matt Exp $    */
 
 /*
  * Copyright (C) 2002 Matt Thomas
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.56 2011/01/18 02:25:42 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.57 2011/06/18 20:34:39 matt Exp $");
 
 #include "opt_ppcarch.h"
 #include "opt_compat_netbsd.h"
@@ -421,6 +421,12 @@
            : "K"(PSL_IR|PSL_DR|PSL_ME|PSL_RI));
 #endif
 
+       /*
+        * Let's take all the indirect calls via our stubs and patch 
+        * them to be direct calls.
+        */
+       cpu_fixup_stubs();
+
        KASSERT(curcpu() == ci);
 }
 



Home | Main Index | Thread Index | Old Index