svn | 1 Jan 08:34 2009

r339 - in openbios-devel: arch/unix config/examples

Author: blueswirl
Date: 2009-01-01 08:34:30 +0100 (Thu, 01 Jan 2009)
New Revision: 339

Modified:
   openbios-devel/arch/unix/unix.c
   openbios-devel/config/examples/ppc_config.xml
Log:
Fix Unix host build on PPC

Modified: openbios-devel/arch/unix/unix.c
===================================================================
--- openbios-devel/arch/unix/unix.c	2008-12-31 20:07:10 UTC (rev 338)
+++ openbios-devel/arch/unix/unix.c	2009-01-01 07:34:30 UTC (rev 339)
 <at>  <at>  -59,6 +59,10  <at>  <at> 
 static int segfault = 0;
 int verbose = 0;

+#ifdef CONFIG_PPC
+uint32_t isa_io_base;
+#endif
+
 int errno_int;	/* implement for fs drivers, needed to build on Mac OS X */

 #if 0

Modified: openbios-devel/config/examples/ppc_config.xml
===================================================================
--- openbios-devel/config/examples/ppc_config.xml	2008-12-31 20:07:10 UTC (rev 338)
+++ openbios-devel/config/examples/ppc_config.xml	2009-01-01 07:34:30 UTC (rev 339)
(Continue reading)

svn | 1 Jan 08:48 2009

r340 - openbios-devel/config/examples

Author: blueswirl
Date: 2009-01-01 08:48:12 +0100 (Thu, 01 Jan 2009)
New Revision: 340

Modified:
   openbios-devel/config/examples/amd64_config.xml
   openbios-devel/config/examples/amd64_rules.xml
   openbios-devel/config/examples/cross-ppc_config.xml
   openbios-devel/config/examples/cross-ppc_rules.xml
   openbios-devel/config/examples/cross-sparc32_config.xml
   openbios-devel/config/examples/cross-sparc32_rules.xml
   openbios-devel/config/examples/cross-sparc64_config.xml
   openbios-devel/config/examples/cross-sparc64_rules.xml
   openbios-devel/config/examples/ppc_config.xml
   openbios-devel/config/examples/ppc_rules.xml
   openbios-devel/config/examples/sparc32_config.xml
   openbios-devel/config/examples/sparc32_rules.xml
   openbios-devel/config/examples/sparc64_config.xml
   openbios-devel/config/examples/sparc64_rules.xml
   openbios-devel/config/examples/x86_config.xml
   openbios-devel/config/examples/x86_rules.xml
Log:
Cleanup white space and unused lines

Modified: openbios-devel/config/examples/amd64_config.xml
===================================================================
--- openbios-devel/config/examples/amd64_config.xml	2009-01-01 07:34:30 UTC (rev 339)
+++ openbios-devel/config/examples/amd64_config.xml	2009-01-01 07:48:12 UTC (rev 340)
 <at>  <at>  -3,7 +3,6  <at>  <at> 

(Continue reading)

svn | 2 Jan 08:41 2009

r341 - openbios-devel/arch/ppc/qemu

Author: blueswirl
Date: 2009-01-02 08:41:40 +0100 (Fri, 02 Jan 2009)
New Revision: 341

Modified:
   openbios-devel/arch/ppc/qemu/init.c
   openbios-devel/arch/ppc/qemu/kernel.h
   openbios-devel/arch/ppc/qemu/methods.c
   openbios-devel/arch/ppc/qemu/qemu.fs
   openbios-devel/arch/ppc/qemu/tree.fs
Log:
Correct duplicate /cpus and more (Laurent Vivier)

Correct duplicate /cpus
Correct mmu properties in /chosen
Add mmu methods to /cpus/≤cpu>

Modified: openbios-devel/arch/ppc/qemu/init.c
===================================================================
--- openbios-devel/arch/ppc/qemu/init.c	2009-01-01 07:48:12 UTC (rev 340)
+++ openbios-devel/arch/ppc/qemu/init.c	2009-01-02 07:41:40 UTC (rev 341)
 <at>  <at>  -489,7 +489,7  <at>  <at> 
 #endif
 	snprintf(buf, sizeof(buf), "/cpus/%s", cpu->name);
 	ofmem_register(find_dev(buf));
-	node_methods_init();
+	node_methods_init(buf);

 #ifdef USE_RTAS
 	if( !(ph=find_dev("/rtas")) )
(Continue reading)

svn | 2 Jan 14:32 2009

r342 - in openbios-devel: arch/ppc/qemu arch/sparc64 config/examples include/openbios modules

Author: blueswirl
Date: 2009-01-02 14:32:15 +0100 (Fri, 02 Jan 2009)
New Revision: 342

Added:
   openbios-devel/include/openbios/fontdata.h
Modified:
   openbios-devel/arch/ppc/qemu/console.c
   openbios-devel/arch/sparc64/console.c
   openbios-devel/config/examples/cross-ppc_config.xml
   openbios-devel/config/examples/cross-sparc32_config.xml
   openbios-devel/config/examples/cross-sparc64_config.xml
   openbios-devel/config/examples/ppc_config.xml
   openbios-devel/config/examples/sparc32_config.xml
   openbios-devel/config/examples/sparc64_config.xml
   openbios-devel/modules/build.xml
   openbios-devel/modules/console.c
   openbios-devel/modules/font_8x16.c
   openbios-devel/modules/font_8x8.c
Log:
Clean up font handling

Modified: openbios-devel/arch/ppc/qemu/console.c
===================================================================
--- openbios-devel/arch/ppc/qemu/console.c	2009-01-02 07:41:40 UTC (rev 341)
+++ openbios-devel/arch/ppc/qemu/console.c	2009-01-02 13:32:15 UTC (rev 342)
 <at>  <at>  -130,8 +130,6  <at>  <at> 
 	int             rb, w, h, depth;
 } osi_fb_info_t;

(Continue reading)

svn | 2 Jan 15:53 2009

r343 - in openbios-devel: arch/ppc arch/ppc/qemu arch/sparc32 arch/sparc64 include include/openbios modules

Author: blueswirl
Date: 2009-01-02 15:53:33 +0100 (Fri, 02 Jan 2009)
New Revision: 343

Added:
   openbios-devel/modules/console_common.c
Removed:
   openbios-devel/modules/console.c
Modified:
   openbios-devel/arch/ppc/build.xml
   openbios-devel/arch/ppc/qemu/console.c
   openbios-devel/arch/sparc32/console.c
   openbios-devel/arch/sparc32/openbios.c
   openbios-devel/arch/sparc64/openbios.c
   openbios-devel/include/openbios/drivers.h
   openbios-devel/include/video_subr.h
   openbios-devel/modules/build.xml
   openbios-devel/modules/video.c
Log:
Clean up video routines

Modified: openbios-devel/arch/ppc/build.xml
===================================================================
--- openbios-devel/arch/ppc/build.xml	2009-01-02 13:32:15 UTC (rev 342)
+++ openbios-devel/arch/ppc/build.xml	2009-01-02 14:53:33 UTC (rev 343)
 <at>  <at>  -231,8 +231,9  <at>  <at> 
   </object>
   <external-object source="libqemu.a"/>
   <external-object source="libbootstrap.a"/>
+  <external-object source="libdrivers.a"/>
(Continue reading)

svn | 3 Jan 14:46 2009

r345 - in openbios-devel: arch/sparc32 include/sparc32

Author: blueswirl
Date: 2009-01-03 14:46:15 +0100 (Sat, 03 Jan 2009)
New Revision: 345

Modified:
   openbios-devel/arch/sparc32/ldscript
   openbios-devel/arch/sparc32/openbios.c
   openbios-devel/include/sparc32/io.h
Log:
Allocate Forth memory and dictionary using malloc like PPC

Modified: openbios-devel/arch/sparc32/ldscript
===================================================================
--- openbios-devel/arch/sparc32/ldscript	2009-01-03 13:45:02 UTC (rev 344)
+++ openbios-devel/arch/sparc32/ldscript	2009-01-03 13:46:15 UTC (rev 345)
 <at>  <at>  -10,10 +10,9  <at>  <at> 
  */
 BASE_ADDR = 0xffd00000;

-/* 16KB heap and stack */
-HEAP_SIZE = 16384;
+/* 16KB stack */
 STACK_SIZE = 16384;
-VMEM_SIZE = 256 * 1024;
+VMEM_SIZE = (256 + 256 + 16) * 1024;
 IOMEM_SIZE = 256 * 1024 + 768 * 1024;

 SECTIONS
 <at>  <at>  -52,15 +51,6  <at>  <at> 
 	*(.bss.*)
(Continue reading)

svn | 4 Jan 13:53 2009

r346 - openbios-devel/arch/sparc64

Author: blueswirl
Date: 2009-01-04 13:53:26 +0100 (Sun, 04 Jan 2009)
New Revision: 346

Modified:
   openbios-devel/arch/sparc64/boot.h
   openbios-devel/arch/sparc64/lib.c
   openbios-devel/arch/sparc64/openbios.c
Log:
Clean up Sparc64 memory management

Concentrate memory and MMU management (lib.c malloc, OF /memory) to lib.c.

Modified: openbios-devel/arch/sparc64/boot.h
===================================================================
--- openbios-devel/arch/sparc64/boot.h	2009-01-03 13:46:15 UTC (rev 345)
+++ openbios-devel/arch/sparc64/boot.h	2009-01-04 12:53:26 UTC (rev 346)
 <at>  <at>  -39,3 +39,6  <at>  <at> 

 // console.c
 void ob_su_init(uint64_t base, uint64_t offset, int intr);
+
+// lib.c
+void ob_mmu_init(const char *cpuname, uint64_t ram_size);

Modified: openbios-devel/arch/sparc64/lib.c
===================================================================
--- openbios-devel/arch/sparc64/lib.c	2009-01-03 13:46:15 UTC (rev 345)
+++ openbios-devel/arch/sparc64/lib.c	2009-01-04 12:53:26 UTC (rev 346)
 <at>  <at>  -8,11 +8,11  <at>  <at> 
(Continue reading)

svn | 4 Jan 15:47 2009

r347 - in openbios-devel: arch/sparc64 include/sparc64

Author: blueswirl
Date: 2009-01-04 15:47:11 +0100 (Sun, 04 Jan 2009)
New Revision: 347

Modified:
   openbios-devel/arch/sparc64/ldscript
   openbios-devel/arch/sparc64/lib.c
   openbios-devel/arch/sparc64/openbios.c
   openbios-devel/include/sparc64/io.h
Log:
Allocate Forth memory and dictionary using malloc like PPC (cf. r345)

Modified: openbios-devel/arch/sparc64/ldscript
===================================================================
--- openbios-devel/arch/sparc64/ldscript	2009-01-04 12:53:26 UTC (rev 346)
+++ openbios-devel/arch/sparc64/ldscript	2009-01-04 14:47:11 UTC (rev 347)
 <at>  <at>  -10,8 +10,7  <at>  <at> 
  */
 BASE_ADDR = 0x00000000ffd00000;

-/* 512KB heap and 16KB stack */
-HEAP_SIZE = 512 * 1024;
+/* 16KB stack */
 STACK_SIZE = 16384;
 VMEM_SIZE = 128 * 1024;
 IOMEM_SIZE = 256 * 1024 + 768 * 1024;
 <at>  <at>  -52,15 +51,6  <at>  <at> 
 	*(.bss.*)
 	*(COMMON)

(Continue reading)

svn | 4 Jan 17:01 2009

r348 - openbios-devel/arch/ppc/qemu

Author: blueswirl
Date: 2009-01-04 17:01:50 +0100 (Sun, 04 Jan 2009)
New Revision: 348

Modified:
   openbios-devel/arch/ppc/qemu/start.S
Log:
Fix reset vector 0xfff00100

Move non-vector code to higher memory addresses to free vector area.
Rename entry point _start to _entry so that it will not conflict with
ldscript _start.

Modified: openbios-devel/arch/ppc/qemu/start.S
===================================================================
--- openbios-devel/arch/ppc/qemu/start.S	2009-01-04 14:47:11 UTC (rev 347)
+++ openbios-devel/arch/ppc/qemu/start.S	2009-01-04 16:01:50 UTC (rev 348)
 <at>  <at>  -58,13 +58,105  <at>  <at> 

 
 /************************************************************************/
-/*	entry								*/
+/*	vectors								*/
 /************************************************************************/

-
         .section .text.vectors, "ax"
-	.space 0x0100
-GLOBL(_start):
+GLOBL(__vectors):
(Continue reading)

svn | 4 Jan 20:25 2009

r349 - openbios-devel/arch/ppc/qemu

Author: blueswirl
Date: 2009-01-04 20:25:41 +0100 (Sun, 04 Jan 2009)
New Revision: 349

Modified:
   openbios-devel/arch/ppc/qemu/kernel.h
   openbios-devel/arch/ppc/qemu/main.c
   openbios-devel/arch/ppc/qemu/start.S
Log:
Pass initrd parameters to preloaded Linux kernel like Yaboot does

Modified: openbios-devel/arch/ppc/qemu/kernel.h
===================================================================
--- openbios-devel/arch/ppc/qemu/kernel.h	2009-01-04 16:01:50 UTC (rev 348)
+++ openbios-devel/arch/ppc/qemu/kernel.h	2009-01-04 19:25:41 UTC (rev 349)
 <at>  <at>  -22,7 +22,7  <at>  <at> 
 /* start.S */
 extern void 		flush_icache_range( char *start, char *stop );
 extern char		of_rtas_start[], of_rtas_end[];
-extern void             call_elf( ulong elf_entry );
+extern void             call_elf( ulong arg1, ulong arg2, ulong elf_entry );

 /* methods.c */
 extern void		node_methods_init( const char *cpuname );

Modified: openbios-devel/arch/ppc/qemu/main.c
===================================================================
--- openbios-devel/arch/ppc/qemu/main.c	2009-01-04 16:01:50 UTC (rev 348)
+++ openbios-devel/arch/ppc/qemu/main.c	2009-01-04 19:25:41 UTC (rev 349)
 <at>  <at>  -41,7 +41,7  <at>  <at> 
(Continue reading)


Gmane