NetBSD-Bugs archive

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

Re: port-alpha/48488: pmap.h modify cause Kernel Panic on NetBSD/alpha current version.



The following reply was made to PR port-alpha/48488; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: matt%3am-software.com@localhost
Cc: gnats-bugs%NetBSD.org@localhost, nullnilaki%gmail.com@localhost, 
tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-alpha/48488: pmap.h modify cause Kernel Panic on NetBSD/alpha
         current version.
Date: Thu, 2 Jan 2014 01:59:23 +0900

 matt@ wrote:
 
 > On Jan 1, 2014, at 8:20 AM, Izumi Tsutsui 
 > <tsutsui%ceres.dti.ne.jp@localhost> wrote:
 > 
 > > PMAP_SIZEOF() is defined as:
 > > http://nxr.netbsd.org/xref/src/sys/arch/alpha/include/pmap.h?r=1.77#148
 > > ---
 > >     152 #define    PMAP_SIZEOF(x)                                          
 > >         \
 > >     153    (ALIGN(sizeof(struct pmap) +                                    
 > > \
 > >     154           (sizeof(struct pmap_asn_info) * ((x) - 1))))
 > > 
 > > ---
 > 
 > The problem is the " - 1" was never removed from that macro.  Which
 > I have since fixed.
 
 What about this reference?
 http://nxr.netbsd.org/xref/src/sys/arch/alpha/alpha/pmap.c?r=1.258#220
     220 static struct pmap     kernel_pmap_store
     221        [(PMAP_SIZEOF(ALPHA_MAXPROCS) + sizeof(struct pmap) - 1)
     222                / sizeof(struct pmap)];
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index