Subject: Re: Quadra 610 (and others) internal video
To: Michael R. Zucca <mrz5149@cs.rit.edu>
From: None <briggs@puma.macbsd.com>
List: port-mac68k
Date: 01/15/1997 14:33:27
> Umm, well, I would suggest not even bothering with a table. You should be able
> to size the video ram and other stuff like the ROMs pretty easily using one
> routine.
Maybe... This doesn't always work for real RAM--unless I was imagining
things a while ago on the II, memory wraps around in wierd ways so that
there are few memory locations that actually return a bus error with
translation disabled (MMU off). It's been a while and I don't remember
the details, but that's why the memory size is passed in from the booter.
> What you do is tell the NetBSD bus error handler that you're probing and then
> setjmp to your own handler routine. Here's some pseudocode:
There is actually already a routine for this--bad_baddr(), I think--in
machdep.c. It encapsulates the setjmp for you and returns 0 if the
address is mapped and non-zero if it's not.
-allen
--
Allen Briggs - end killing - briggs@macbsd.com