Subject: uvm changes causes problems on pmax (lockedlimit)
To: None <current-users@NetBSD.org, port-pmax@NetBSD.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: current-users
Date: 06/19/1999 10:13:01
When compiling a pmax kernel, I get the following after upgrading to
yesterday's sup'ed sources:

../../../../uvm/uvm_mmap.c: In function `uvm_mmap':
../../../../uvm/uvm_mmap.c:1174: `lockedlimit' undeclared (first use in this function)
../../../../uvm/uvm_mmap.c:1174: (Each undeclared identifier is reported only once
../../../../uvm/uvm_mmap.c:1174: for each function it appears in.)


This occurs in the following lines:

                        if ((atop(size) + uvmexp.wired) > uvmexp.wiredmax
#ifdef pmap_wired_count
                            || (lockedlimit != 0 && (size +
                                 ptoa(pmap_wired_count(vm_map_pmap(map)))) >
                                lockedlimit)
#endif
                        ) {
                                retval = KERN_RESOURCE_SHORTAGE;
                                /* unmap the region! */ 
                                (void) uvm_unmap(map, *addr, *addr + size);
                                goto bad; 
                        }


Whether this problem is MI or pmax/mips specific, I don't know.

regards
- Erik Bertelsen