Subject: Re: pmap & ISADMA
To: Robert Swindells <rjs@fdy2.demon.co.uk>
From: Matt Thomas <matt@3am-software.com>
List: port-arm
Date: 02/20/2002 08:06:27
At 10:49 AM 2/20/2002 +0000, Robert Swindells wrote:
>port-acorn32@netbsd.org
>Subject: Small pmap.c change
>
>
>Would anyone have any objections to me splitting out the code from pmap.c
>that is surrounded by "#if NISADMA > 0" to it's own file ?
>
>It would avoid the need for a dummy "device isadma" line in conf files
>for non ISA platforms.

The right way to fix this is to redo the arguments to pmap_bootstrap.

It should be passed an array of the following struct:

{ int memreg_freelist; paddr_t memreg_start; psize_t memreg_size; }

Thus only caller needs to that ISADMA pages deserve their own freelist.

-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message