Subject: Re: growkernel patch for arm32 archs.
To: None <port-arm@netbsd.org>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: port-arm
Date: 03/02/2002 18:37:37
--------------Boundary-00=_PQZCD51VUUY2VUUOWWEH
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

On Saturday 02 March 2002 4:35 pm, Chris Gilbert wrote:
> Hi,
>
> As part of trying to improve the arm32 pmap I've spent today implementing
> growkernel functionality.  It seems to be working ok on cats.  However
> being a tad rusty on the pmap I thought I'd best ask if someone can check
> it.
>
> Basically this allows the kernel to grow the kernel VM as needed.  by
> default it starts with 16MB of kernel VM space.
>
> Can port maintainers check the value of KERNEL_VM_SIZE.  I've based the
> size on the comment in the header file, if that comments wrong then I may
> well have set it to the wrong thing.
>
> hpcarm doesn't have a comment saying the range for kernel VM so I've left
> it at the current value.
>
> shark, I've no idea how to update shark to make use of this, it's initarm
> is very different being ofw based, could someone who knows check this.

I think I've found the code for this, but there has been a suggestion that 
some tables need to be kept in sync between OFW and the kernel, can someone 
with more knowledge on this check the attached patch. (note apply with the 
previous patch as well.)

Cheers,
Chris


--------------Boundary-00=_PQZCD51VUUY2VUUOWWEH
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="shark.growkern.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="shark.growkern.patch"

SW5kZXg6IG9mdy5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L3N5c3NyYy9zeXMvYXJj
aC9zaGFyay9vZncvb2Z3LmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNwpkaWZmIC11IC1wIC1y
MS43IG9mdy5jCi0tLSBvZncuYwkyMDAyLzAyLzIyIDA0OjQ5OjIyCTEuNworKysgb2Z3LmMJMjAw
Mi8wMy8wMiAxODozNTozMwpAQCAtMTE3OSw3ICsxMTc5LDcgQEA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