[comp.sys.amiga] CacheCard V1.00 Bug

daveh@cbmvax.UUCP (Dave Haynie) (07/19/89)

A bug in my CacheCard program (V1.00) prevents it from properly handling MMU
tables set up with SetCPU's CARDROM option.  The current workaround is to not
try to modify the cachability of any device that's been mapped with the
CARDROM option.  For now, changing line 144 from:

	if ((tag->maintable[page] & PD_DT_TYPE) != PD_DT_INVALID) {
to
	if ((tag->maintable[page] & PD_DT_TYPE) == PD_DT_PAGE) {

should prevent any possible system crashes that could result from trying to
cache map a CARDROMed device.  A future version will permit cache mapping
of CARDROMed devices by handling both levels of the MMU tree.  

That'll teach me to start programming at 4AM....

-- 
Dave Haynie Commodore-Amiga (Systems Engineering) "The Crew That Never Rests"
   {uunet|pyramid|rutgers}!cbmvax!daveh      PLINK: D-DAVE H     BIX: hazy
           Be careful what you wish for -- you just might get it

ejkst@unix.cis.pittsburgh.edu (Eric J. Kennedy) (07/19/89)

In article <7350@cbmvax.UUCP> daveh@cbmvax.UUCP (Dave Haynie) writes:
>That'll teach me to start programming at 4AM....

Right.  Next time start at 5AM.

-- 
Eric Kennedy
ejkst@cisunx.UUCP