svn | 2 Aug 12:51 2008

r216 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-02 12:51:51 +0200 (Sat, 02 Aug 2008)
New Revision: 216

Modified:
   openbios-devel/arch/sparc64/openbios.c
Log:
Fix wrong translations

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-07-22 07:07:37 UTC (rev 215)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-02 10:51:51 UTC (rev 216)
 <at>  <at>  -512,16 +512,16  <at>  <at> 
     push_str("/virtual-memory");
     fword("find-device");

-    // 0 to va2pa(_start): 1:1
+    // 0 to 16M: 1:1
     PUSH(0);
     fword("encode-int");
     PUSH(0);
     fword("encode-int");
     fword("encode+");
-    PUSH((va2pa((unsigned long)&_data) - 8192) >> 32);
+    PUSH(0);
     fword("encode-int");
     fword("encode+");
-    PUSH((va2pa((unsigned long)&_data) - 8192) & 0xffffffff);
+    PUSH(16 * 1024 * 1024);
(Continue reading)

svn | 2 Aug 12:53 2008

r217 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-02 12:53:24 +0200 (Sat, 02 Aug 2008)
New Revision: 217

Modified:
   openbios-devel/arch/sparc64/openbios.c
Log:
Add bootargs property for kernel command line

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-08-02 10:51:51 UTC (rev 216)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-02 10:53:24 UTC (rev 217)
 <at>  <at>  -605,6 +605,11  <at>  <at> 
     fword("encode-string");
     push_str("bootpath");
     fword("property");
+
+    push_str(obio_cmdline);
+    fword("encode-string");
+    push_str("bootargs");
+    fword("property");
 }

 void arch_nvram_put(char *data)

--
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
(Continue reading)

svn | 2 Aug 12:59 2008

r218 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-02 12:59:05 +0200 (Sat, 02 Aug 2008)
New Revision: 218

Modified:
   openbios-devel/arch/sparc64/boot.c
   openbios-devel/arch/sparc64/ldscript
   openbios-devel/arch/sparc64/openbios.c
Log:
Finally fix the very obscure problem which prevented normal and especially
FCode boot: too small heap (used for Forth memory)!
Remove forced arch_init and boot hacks

Modified: openbios-devel/arch/sparc64/boot.c
===================================================================
--- openbios-devel/arch/sparc64/boot.c	2008-08-02 10:53:24 UTC (rev 217)
+++ openbios-devel/arch/sparc64/boot.c	2008-08-02 10:59:05 UTC (rev 218)
 <at>  <at>  -39,11 +39,11  <at>  <at> 
                 path = "/obio/SUNW,fdtwo";
                 break;
             case 'c':
-                path = "disk";
+                path = "/pci/isa/ide0/disk <at> 0,0:a";
                 break;
             default:
             case 'd':
-                path = "cdrom";
+                path = "/pci/isa/ide1/cdrom <at> 0,0:a";
                 break;
             case 'n':
(Continue reading)

svn | 6 Aug 20:20 2008

r219 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-06 20:20:12 +0200 (Wed, 06 Aug 2008)
New Revision: 219

Modified:
   openbios-devel/arch/sparc64/openbios.c
   openbios-devel/arch/sparc64/tree.fs
Log:
Fix #size-cells for HelenOS, add /openprom/version node

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-08-02 10:59:05 UTC (rev 218)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-06 18:20:12 UTC (rev 219)
 <at>  <at>  -216,6 +216,21  <at>  <at> 
     //unmap_pages(virt, size);
 }

+/*
+  3.6.5 claim
+  ( virt size align -- base )
+*/
+static void
+mmu_claim(void)
+{
+    unsigned long virt, size, align;
+
+    align = POP();
+    size = POP();
+    virt = POP();
(Continue reading)

svn | 6 Aug 20:20 2008

r220 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-06 20:20:57 +0200 (Wed, 06 Aug 2008)
New Revision: 220

Modified:
   openbios-devel/arch/sparc64/openbios.c
Log:
Fix typo

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-08-06 18:20:12 UTC (rev 219)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-06 18:20:57 UTC (rev 220)
 <at>  <at>  -164,7 +164,7  <at>  <at> 
         } else if (currsize >= PAGE_SIZE_512K &&
                    (virt & PAGE_MASK_512K) == 0 &&
                    (phys & PAGE_MASK_512K) == 0) {
-            currsize = PAGE_SIZE_8K;
+            currsize = PAGE_SIZE_512K;
             tte_data = 4ULL << 60;
         } else if (currsize >= PAGE_SIZE_64K &&
                    (virt & PAGE_MASK_64K) == 0 &&

--
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you

svn | 6 Aug 20:23 2008

r221 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-06 20:23:13 +0200 (Wed, 06 Aug 2008)
New Revision: 221

Modified:
   openbios-devel/arch/sparc64/openbios.c
Log:
More realistic mmu_translate

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-08-06 18:20:57 UTC (rev 220)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-06 18:23:13 UTC (rev 221)
 <at>  <at>  -22,6 +22,7  <at>  <at> 
 #include "boot.h"
 #include "../../drivers/timer.h" // XXX
 #include "asi.h"
+#include "spitfire.h"
 #include "libc/vsprintf.h"

 #define REGISTER_NAMED_NODE( name, path )   do {                        \
 <at>  <at>  -84,22 +85,42  <at>  <at> 
 static void
 mmu_translate(void)
 {
-    unsigned long virt, phys;
+    unsigned long virt, phys, tag, data, mask;
+    unsigned int i;

     virt = POP();
(Continue reading)

svn | 6 Aug 20:24 2008

r222 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-06 20:24:51 +0200 (Wed, 06 Aug 2008)
New Revision: 222

Modified:
   openbios-devel/arch/sparc64/boot.c
Log:
Fix device names to allow Net/OpenBSD to boot

Modified: openbios-devel/arch/sparc64/boot.c
===================================================================
--- openbios-devel/arch/sparc64/boot.c	2008-08-06 18:23:13 UTC (rev 221)
+++ openbios-devel/arch/sparc64/boot.c	2008-08-06 18:24:51 UTC (rev 222)
 <at>  <at>  -39,11 +39,11  <at>  <at> 
                 path = "/obio/SUNW,fdtwo";
                 break;
             case 'c':
-                path = "/pci/isa/ide0/disk <at> 0,0:a";
+                path = "disk";
                 break;
             default:
             case 'd':
-                path = "/pci/isa/ide1/cdrom <at> 0,0:a";
+                path = "cdrom";
                 break;
             case 'n':
                 path = "net";

--
OpenBIOS                 http://openbios.org/
(Continue reading)

svn | 7 Aug 01:24 2008

r223 - openbios-devel/forth/system

Author: stepan
Date: 2008-08-07 01:24:48 +0200 (Thu, 07 Aug 2008)
New Revision: 223

Modified:
   openbios-devel/forth/system/ciface.fs
Log:
add set-callback for Aurora 2.0

Modified: openbios-devel/forth/system/ciface.fs
===================================================================
--- openbios-devel/forth/system/ciface.fs	2008-08-06 18:24:51 UTC (rev 222)
+++ openbios-devel/forth/system/ciface.fs	2008-08-06 23:24:48 UTC (rev 223)
 <at>  <at>  -11,6 +11,8  <at>  <at> 
 \ private stuff
 \ -------------------------------------------------------------

+variable callback-function
+
 : ?phandle ( phandle -- phandle )
   dup 0= if ." NULL phandle" -1 throw then
 ;
 <at>  <at>  -267,7 +269,12  <at>  <at> 
   \ ." --- " cr
 ;

-\ : set-callback ( newfunc -- oldfunc ) ;
+: set-callback ( newfunc -- oldfunc )
+  callback-function  <at> 
+  swap
(Continue reading)

svn | 9 Aug 14:52 2008

r224 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-09 14:52:34 +0200 (Sat, 09 Aug 2008)
New Revision: 224

Modified:
   openbios-devel/arch/sparc64/console.c
Log:
Switch keyboard controller to translated mode so it works as expected

Modified: openbios-devel/arch/sparc64/console.c
===================================================================
--- openbios-devel/arch/sparc64/console.c	2008-08-06 23:24:48 UTC (rev 223)
+++ openbios-devel/arch/sparc64/console.c	2008-08-09 12:52:34 UTC (rev 224)
 <at>  <at>  -309,6 +309,15  <at>  <at> 
 	while (inb(0x64) & 2);
 }

+static void keyboard_controller_cmd(unsigned char cmd, unsigned char val)
+{
+	outb(cmd, 0x64);
+	/* wait until keyboard controller accepts cmds: */
+	while (inb(0x64) & 2);
+	outb(val, 0x60);
+	while (inb(0x64) & 2);
+}
+
 static char keyboard_poll(void)
 {
 	unsigned int c;
 <at>  <at>  -575,4 +584,6  <at>  <at> 
(Continue reading)

svn | 9 Aug 14:54 2008

r225 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2008-08-09 14:54:56 +0200 (Sat, 09 Aug 2008)
New Revision: 225

Modified:
   openbios-devel/arch/sparc64/openbios.c
Log:
Add mmu release (claim added in r219)

Modified: openbios-devel/arch/sparc64/openbios.c
===================================================================
--- openbios-devel/arch/sparc64/openbios.c	2008-08-09 12:52:34 UTC (rev 224)
+++ openbios-devel/arch/sparc64/openbios.c	2008-08-09 12:54:56 UTC (rev 225)
 <at>  <at>  -252,6 +252,20  <at>  <at> 
     PUSH(virt); // XXX
 }

+/*
+  3.6.5 release
+  ( virt size -- )
+*/
+static void
+mmu_release(void)
+{
+    unsigned long virt, size;
+
+    size = POP();
+    virt = POP();
+    // XXX
+}
(Continue reading)


Gmane