Subject: Re: port-mac68k/32583: mac68k netbsd-2 panics during rcp(1)
To: None <port-mac68k-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-bugs
Date: 01/20/2006 22:35:01
The following reply was made to PR port-mac68k/32583; it has been noted by GNATS.

From: Dave Huang <khym@azeotrope.org>
To: gnats-bugs@netbsd.org
Cc: port-mac68k-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-mac68k/32583: mac68k netbsd-2 panics during rcp(1)
Date: Fri, 20 Jan 2006 16:31:49 -0600

 On Fri, Jan 20, 2006 at 03:39:15PM -0600, Dave Huang wrote:
 > Hmm, so bus_space_set_region_2() is being called with a count argument
 > of 0? (the last argument). The bus_space(9) manpage mentions,
 > "Functions which take a count of bytes have undefined results if the
 > specified count is zero," and mac68k's implementation treats a count
 > of 0 as being 2^32.
 
 Actually, I just noticed that bus_space_set_region_2() is a macro that
 checks for a 0 count, and only calls the actual function
 (mac68k_bssr2()) if count is non-zero. In which case, I don't know why
 mac68k_bssr2() is getting called with a 0 count.