10 Dec 2012 17:34
topdown-vm for sun2/sun3
Chuck Silvers <chuq <at> chuq.com>
2012-12-10 16:34:43 GMT
2012-12-10 16:34:43 GMT
hi folks, the attached patch enables __USE_TOPDOWN_VM for sun2 and sun3. I've tested only on a sun3/60. sun3x should be fine since doesn't use PMAP_PREFER(), and I just applied the same change to sun2. does anyone see any problem with this? -Chuck
Index: src/sys/arch/sun2/include/pmap.h =================================================================== RCS file: /home/chs/netbsd/cvs/src/sys/arch/sun2/include/pmap.h,v retrieving revision 1.24 diff -u -p -r1.24 pmap.h --- src/sys/arch/sun2/include/pmap.h 3 Jun 2011 17:03:52 -0000 1.24 +++ src/sys/arch/sun2/include/pmap.h 7 Dec 2012 23:58:30 -0000 <at> <at> -51,7 +51,7 <at> <at> int _pmap_fault(struct vm_map *, vaddr_t /* This lets us have some say in choosing VA locations. */ extern void pmap_prefer(vaddr_t, vaddr_t *); -#define PMAP_PREFER(fo, ap, sz, td) pmap_prefer((fo), (ap)) +#define PMAP_PREFER(fo, ap, sz, td) pmap_prefer((fo), (ap), (td)) /* This needs to be a macro for kern_sysctl.c */ extern segsz_t pmap_resident_pages(pmap_t); Index: src/sys/arch/sun2/include/vmparam.h =================================================================== RCS file: /home/chs/netbsd/cvs/src/sys/arch/sun2/include/vmparam.h,v retrieving revision 1.14(Continue reading)
RSS Feed