Subject: DUOTEST kernel
To: None <port-mac68k@netbsd.org>
From: Daishi Kato <daishi@axlight.com>
List: port-mac68k
Date: 10/29/1999 09:03:09
Hi,
I made the kernel for my Duo230.
You can find it at
http://www.geocities.co.jp/SiliconValley-SanJose/4064/netbsd/
Note that these are uuencoded files but has .html extentions.
The following is the diffs from NetBSD-1.4.1.
-------8-------8-------8-------8-------8-------8-------8-------8
--- mac68k/locore.s.orig Wed Oct 13 20:43:55 1999
+++ mac68k/locore.s Tue Oct 26 21:50:39 1999
@@ -1647,7 +1647,7 @@
lea _ASM_LABEL(longscratch),a0
movl #0x00ff8710,a0@ | Set up FC 1 r/w access
- .long 0xf0100800 | pmove a0@,tt0
+ .long 0xf0100c00 | pmove a0@,tt1 changed by daishi
movl sp@(8),a0 | logical address to look up
movl #0,a1 | clear in case of failure
@@ -1772,7 +1772,7 @@
get_pte_success:
lea _ASM_LABEL(longscratch),a0 | disable tt
movl #0,a0@
- .long 0xf0100800 | pmove a0@,tt0
+ .long 0xf0100c00 | pmove a0@,tt1 changed by daishi
addql #4,sp | return temporary space
rts
--- mac68k/machdep.c.orig Tue Oct 26 22:45:10 1999
+++ mac68k/machdep.c Thu Oct 28 21:57:16 1999
@@ -2513,7 +2513,7 @@
{
u_long addr, phys;
- if (!get_physical(videoaddr, &phys))
+ if (!get_physical(videoaddr, &phys)&&!(phys=videoaddr)) /*by daishi*/
printf("get_mapping(): %s. False start.\n", id);
else {
mac68k_vidlog = videoaddr;
--- dev/adb_direct.c.orig Sat Oct 16 01:45:56 1999
+++ dev/adb_direct.c Wed Oct 27 20:17:32 1999
@@ -2012,6 +2012,8 @@
(void)(&s); /* work around lame GCC bug */
+ adb_setup_hw_type(); /*by daishi setup hardware type */
+
/* Make sure we are not interrupted while building the table. */
if (adbHardware != ADB_HW_PB) /* ints must be on for PB? */
s = splhigh();
@@ -2027,8 +2029,6 @@
*/
for (i = 0; i < 16; i++)
ADBDevTable[i].devType = 0;
-
- adb_setup_hw_type(); /* setup hardware type */
adb_hw_setup(); /* init the VIA bits and hard reset ADB */
--- dev/pm_direct.c.orig Mon Oct 18 23:19:51 1999
+++ dev/pm_direct.c Sun Oct 24 22:45:53 1999
@@ -1047,7 +1047,7 @@
/* wait until the PM interrupt is occured */
delay = 0x80000;
while (adbWaiting == 1) {
- if ((via_reg(VIA1, vIFR) & 0x10) == 0x10)
+ /* by daishi if ((via_reg(VIA1, vIFR) & 0x10) == 0x10)*/
pm_intr();
#ifdef PM_GRAB_SI
#if 0
-------8-------8-------8-------8-------8-------8-------8-------8
--daishi