Subject: Sysmap storange value
To: None <port-news68k@netbsd.org, port-next68k@netbsd.org,>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-news68k
Date: 03/29/2007 03:03:41
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