Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke Initialize lock objects.



details:   https://anonhg.NetBSD.org/src/rev/ceca05dc7d42
branches:  trunk
changeset: 335386:ceca05dc7d42
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Mon Jan 05 07:40:05 2015 +0000

description:
Initialize lock objects.

diffstat:

 sys/arch/powerpc/booke/booke_pmap.c |  7 +++++--
 sys/arch/powerpc/booke/e500_intr.c  |  9 +++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diffs (58 lines):

diff -r 54e2c0e9498e -r ceca05dc7d42 sys/arch/powerpc/booke/booke_pmap.c
--- a/sys/arch/powerpc/booke/booke_pmap.c       Mon Jan 05 06:28:34 2015 +0000
+++ b/sys/arch/powerpc/booke/booke_pmap.c       Mon Jan 05 07:40:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: booke_pmap.c,v 1.18 2014/03/18 18:20:41 riastradh Exp $        */
+/*     $NetBSD: booke_pmap.c,v 1.19 2015/01/05 07:40:05 nonaka Exp $   */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.18 2014/03/18 18:20:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.19 2015/01/05 07:40:05 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/kcore.h>
@@ -167,6 +167,9 @@
 
        KASSERT(endkernel == trunc_page(endkernel));
 
+       /* init the lock */
+       pmap_tlb_info_init(&pmap_tlb0_info);
+
        /*
         * Compute the number of pages kmem_arena will have.
         */
diff -r 54e2c0e9498e -r ceca05dc7d42 sys/arch/powerpc/booke/e500_intr.c
--- a/sys/arch/powerpc/booke/e500_intr.c        Mon Jan 05 06:28:34 2015 +0000
+++ b/sys/arch/powerpc/booke/e500_intr.c        Mon Jan 05 07:40:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: e500_intr.c,v 1.28 2014/12/27 16:19:33 nonaka Exp $    */
+/*     $NetBSD: e500_intr.c,v 1.29 2015/01/05 07:40:05 nonaka Exp $    */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.28 2014/12/27 16:19:33 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.29 2015/01/05 07:40:05 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -1095,6 +1095,11 @@
        }
 
        /*
+        * Initialize interrupt handler lock
+        */
+       mutex_init(&e500_intr_lock, MUTEX_DEFAULT, IPL_HIGH);
+
+       /*
         * We need to be in mixed mode.
         */
        openpic_write(cpu, OPENPIC_GCR, GCR_M);



Home | Main Index | Thread Index | Old Index