Subject: port-i386/1735: pmap.c checks for NISA not for NISADMA
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>
List: netbsd-bugs
Date: 11/07/1995 12:45:13
>Number:         1735
>Category:       port-i386
>Synopsis:       isaphysmem is used in pmap.o but shouldn't be in some cases.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov  7 07:50:01 1995
>Last-Modified:
>Originator:     Andrew Wheadon
>Organization:
The cost of living hasn't affected it's popularity. (unknown)
current	release=doc host=wipux2.wifo.uni-mannheim.de \ "NetBSD-current mirror"
hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix
>Release:        7.11.95
>Environment:
System: NetBSD wipux2 1.1_ALPHA NetBSD 1.1_ALPHA (WIPOOL) #9: Thu Oct 26 13:47:22 MET 1995 toor@wipux2:/mit/src/sys/arch/i386/compile/WIPOOL i386


>Description:
	When compiling a DISKLESS-kernel for the i386 with no devices
	using 'dma' defined, pmap.c still uses isaphysmem for
	some dma stuff because it says '#if NISA > 0' not '#if NISADMA > 0'
>How-To-Repeat:
	remove 'sb0' from DISKLESS and config DISKLESS
	make depend && make fails
>Fix:
	I think this is it: (at least it compiles and boots after that,
	though I haven't got further than rpc.bootparamd but t. a dif. story)
	
*** pmap.c.old	Tue Nov  7 12:34:56 1995
--- pmap.c	Tue Nov  7 12:34:46 1995
***************
*** 276,282 ****
  	 * reserve special hunk of memory for use by bus dma as a bounce
  	 * buffer (contiguous virtual *and* physical memory).  XXX
  	 */
! #if NISA > 0
  	isaphysmem = pmap_steal_memory(DMA_BOUNCE * NBPG);
  #endif
  
--- 276,282 ----
  	 * reserve special hunk of memory for use by bus dma as a bounce
  	 * buffer (contiguous virtual *and* physical memory).  XXX
  	 */
! #if NISADMA > 0
  	isaphysmem = pmap_steal_memory(DMA_BOUNCE * NBPG);
  #endif
  
>Audit-Trail:
>Unformatted: