Re: Current kernel with http://gnats.netbsd.org/39965 and pmap patches

Izumi Tsutsui <[email protected]>
Newsgroups gmane.os.netbsd.ports.atari
Message-ID <[email protected]>
[email protected] wrote:

> Thanks for pointing out Sysptmap changes. I followed amiga/amiga/amiga_init.c
> changes and changed atari/atari/atari_init.c based on that.

Oh, good work ;-)

> Positive thing is that I don't have ATA problem anymore (no need for
> ATAC_CAP_NOIRQ workaround), but installer still crashes with earlier problem
> when using 030 cpu ...
> 
> I'll run more tests tomorrow with 060 cpu.
> 
> Here's link to new pmap sync patch (includes also cleaned atari/include/pcb.h
> and atari/atari/genassym.cf):
> http://koti.welho.com/tmakinen/atari/pmap-sync2.diff

I think VM_MAX_KERNEL_ADDRESS in <machine/vmparam.h> should also
be adjusted for moved Sysmap:


Index: include/vmparam.h
===================================================================
RCS file: /cvsroot/src/sys/arch/atari/include/vmparam.h,v
retrieving revision 1.21
diff -u -r1.21 vmparam.h
--- include/vmparam.h	11 Dec 2005 12:16:59 -0000	1.21
+++ include/vmparam.h	16 Dec 2008 12:46:12 -0000
@@ -152,7 +152,7 @@
 #define VM_MAX_ADDRESS		((vaddr_t)(USRSTACK))
 #define VM_MAXUSER_ADDRESS	((vaddr_t)(VM_MAX_ADDRESS))
 #define VM_MIN_KERNEL_ADDRESS	((vaddr_t)0)
-#define VM_MAX_KERNEL_ADDRESS	((vaddr_t)(0-PAGE_SIZE))
+#define VM_MAX_KERNEL_ADDRESS	((vaddr_t)(-NPTEPG * PAGE_SIZE))
 
 /*
  * virtual sizes (bytes) for various kernel submaps

---

It would also be better to remove old "Set Sysmap;" comment in
atari_init.c since it looks quite obsolete.

---
Izumi Tsutsui
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.