Subject: Question about ptest040()
To: None <port-mac68k@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 12/07/1996 14:15:31
Hi there, I was wondering why ptest040 in locore.s puts 1 in the sfc
register? The copy of the M68000 family programmer's reference says
"The specification of the function code for the test address is in the
destination function code (DFC) register."
Also, according to arch/m68k/include/cpu.h, function code 1 is user
data space... Since MacOS runs in supervisor mode, shouldn't that be
5, supervisor data space, if it's to be used to get the MacOS memory
mapping?
Anyways, I did some minor hacking and it looks like I got the
get_mapping() stuff working on my C660av... so what does this get me
again? :) Nothing seems to have changed, except now I get:
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 12582912 bytes in 3072 pages.
Low = 0x0, high = 0xc00000
instead of the "Faked range to byte 0xwhatever" message.
The ite0 or grf0 or whatever still doesn't seem to get configured...
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@bga.com | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++