Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Don't nest structure definitions.



details:   https://anonhg.NetBSD.org/src/rev/28ec7907a28d
branches:  trunk
changeset: 332013:28ec7907a28d
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 05:25:28 2014 +0000

description:
Don't nest structure definitions.

diffstat:

 sys/arch/arm/arm32/pmap.c |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 0268b91126af -r 28ec7907a28d sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Sep 05 05:24:53 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Sep 05 05:25:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.298 2014/08/30 13:02:01 kiyohara Exp $      */
+/*     $NetBSD: pmap.c,v 1.299 2014/09/05 05:25:28 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.298 2014/08/30 13:02:01 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.299 2014/09/05 05:25:28 matt Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -620,17 +620,19 @@
  * Reference counts are maintained for L2 descriptors so they can be
  * freed when empty.
  */
+struct l2_bucket {
+       pt_entry_t *l2b_kva;            /* KVA of L2 Descriptor Table */
+       paddr_t l2b_pa;                 /* Physical address of same */
+       u_short l2b_l1slot;             /* This L2 table's L1 index */
+       u_short l2b_occupancy;          /* How many active descriptors */
+};
+
 struct l2_dtable {
        /* The number of L2 page descriptors allocated to this l2_dtable */
        u_int l2_occupancy;
 
        /* List of L2 page descriptors */
-       struct l2_bucket {
-               pt_entry_t *l2b_kva;    /* KVA of L2 Descriptor Table */
-               paddr_t l2b_pa;         /* Physical address of same */
-               u_short l2b_l1slot;     /* This L2 table's L1 index */
-               u_short l2b_occupancy;  /* How many active descriptors */
-       } l2_bucket[L2_BUCKET_SIZE];
+       struct l2_bucket l2_bucket[L2_BUCKET_SIZE];
 };
 
 /*



Home | Main Index | Thread Index | Old Index