Port-atari archive

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

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



tjamaloo%gmail.com@localhost 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


Home | Main Index | Thread Index | Old Index