Subject: Uninitalized kernel variable uvm_maxkaddr
To: None <tech-kern@netbsd.org>
From: Amatus <c11h15no2@yahoo.com>
List: tech-kern
Date: 05/31/2005 06:57:57
Hi all, uvm_maxkaddr is never initalized before it's used. It's first
use is in uvm_pageboot_alloc() (at least on i386) where it's compared
against:
if (uvm_maxkaddr < (addr + size)) {
uvm_maxkaddr = pmap_growkernel(addr + size);
if (uvm_maxkaddr < (addr + size))
panic("uvm_pageboot_alloc: pmap_growkernel()
failed");
}
It doesn't cause a problem because it seems to always be 0 on boot and
is then set to a more reasonable value (something like 0xc100000000).
It seems to me it should be initalized in pmap_bootstrap(). Can someone
tell me why this isn't the case?
thanks
__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html