Port-news68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Sysmap storange value



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



Home | Main Index | Thread Index | Old Index