Subject: uvm_km_valloc_align() and USPACE (Re: CVS commit: syssrc)
To: None <nisimura@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 11/29/2000 00:21:43
In <200011270436.GAA23722@netbsd.hut.fi>
nisimura@netbsd.org wrote:

> Module Name:	syssrc
> Committed By:	nisimura
> Date:		Mon Nov 27 04:36:41 UTC 2000
> 
> Modified Files:
> 	syssrc/sys/kern: kern_fork.c
> 	syssrc/sys/uvm: uvm_extern.h uvm_km.c
> 
> Log Message:
> Introduce uvm_km_valloc_align() and use it to glab process's USPACE
> aligned on USPACE boundary in kernel virutal address.  It's benefitial
> for MIPS R4000's paired TLB entry design.

This means that UPAGES must be the power of two?
On some m68k port, UPAGES is 3 so uvm_map_findspace() fails
on KASSERT((align & (align - 1)) == 0).

(I guess UPAGES on such ports could be changed to 2 from 3, though.)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp