Sysmap storange value
KIYOHARA Takashi <[email protected]> Thu, 29 Mar 2007 03:03:41 +0900 (JST)
| Newsgroups | gmane.os.netbsd.ports.mac68k,gmane.os.netbsd.ports.news68k,gmane.os.netbsd.ports.next68k,gmane.os.netbsd.ports.x68k,gmane.os.netbsd.ports.mvme68k |
|---|---|
| Message-ID | <[email protected]> |
Hi! all,
I do not think that the value of 'Sysmap' is correct.
e.g.
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/news68k/news68k/pmap_bootstrap.c.diff?r1=1.11&r2=1.12&f=h
(and next68k, x68k, mvme68k, mac68k)
Rev 1.11:
nptpages = RELOC(Sysptsize, int) +
(iiomapsize + eiomapsize + NPTEPG - 1) /NPTEPG;
... snip ...
RELOC(Sysmap, pt_entry_t *) =
(pt_entry_t *)m68k_ptob(nptpages * NPTEPG);
Rev 1.12:
RELOC(Sysmap, pt_entry_t *) =
(pt_entry_t *)m68k_ptob((NPTEPG - 1) * NPTEPG);
hmm... Perhaps, I think that it is.
RELOC(Sysmap, pt_entry_t *) =
(pt_entry_t *)m68k_ptob((NPTEPG - 1));
Please your good follow.
Regards,
--
kiyohara