Author: arty
Date: Wed Jun 28 05:14:23 2006
New Revision: 22670
URL:
http://svn.reactos.org/svn/reactos?rev=22670&view=rev
Log:
Woot. We're deep into freeldr. Printf is working, etc.
Forgot .bss. TODO: retrieve .bss size in build step.
Modified:
branches/powerpc/reactos/boot/freeldr/bootsect/ofwboot.s
branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
Modified: branches/powerpc/reactos/boot/freeldr/bootsect/ofwboot.s
URL:
http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/boot/freeldr/bo…
==============================================================================
--- branches/powerpc/reactos/boot/freeldr/bootsect/ofwboot.s (original)
+++ branches/powerpc/reactos/boot/freeldr/bootsect/ofwboot.s Wed Jun 28 05:14:23 2006
@@ -34,7 +34,9 @@
addi %r4,%r4,_binary_freeldr_tmp_end@l
lis %r5,_binary_freeldr_tmp_start@ha
addi %r5,%r5,_binary_freeldr_tmp_start@l
+ /* Make sufficient room for .bss */
sub %r4,%r4,%r5
+ addi %r4,%r4,0x6000
xor %r5,%r5,%r5
li %r5,0x1000
Modified: branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
URL:
http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/boot/freeldr/fr…
==============================================================================
--- branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c (original)
+++ branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c Wed Jun 28 05:14:23
2006
@@ -284,14 +284,26 @@
chosen_package = ofw_finddevice( "/chosen" );
+ ofw_print_string("Chosen package: ");
+ ofw_print_number(chosen_package);
+ ofw_print_string("\n");
+
ofw_getprop( chosen_package, "stdin",
(char *)&stdin_handle, sizeof(stdin_handle) );
- stdin_handle = REV(stdin_handle);
+ ofw_print_string("ofw_getprop done\n");
+
+ /* stdin_handle = REV(stdin_handle); */
+
+ ofw_print_string("Populating MachVtbl: ");
+ ofw_print_number((int)&MachVtbl);
+ ofw_print_string("\n");
MachVtbl.ConsPutChar = PpcPutChar;
MachVtbl.ConsKbHit = PpcConsKbHit;
MachVtbl.ConsGetCh = PpcConsGetCh;
+
+ ofw_print_string("About to do printf\n");
printf( "stdin_handle is %x\n", stdin_handle );