Author: mcayland Date: Fri Apr 2 16:14:34 2010 New Revision: 729 URL: http://tracker.coreboot.org/trac/openbios/changeset/729
Log: Enable (go) for SPARC64 and also force register o0 to be 0 as detailed in the OF specification.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/arch/sparc64/context.c trunk/openbios-devel/arch/sparc64/openbios.c
Modified: trunk/openbios-devel/arch/sparc64/context.c ============================================================================== --- trunk/openbios-devel/arch/sparc64/context.c Fri Apr 2 16:03:38 2010 (r728) +++ trunk/openbios-devel/arch/sparc64/context.c Fri Apr 2 16:14:34 2010 (r729) @@ -125,6 +125,7 @@ ctx = init_context(image_stack, sizeof image_stack, 0); ctx->pc = entry_point; ctx->npc = entry_point+4; + ctx->regs[REG_O0] = 0; ctx->regs[REG_O0+4] = cif_handler;
ctx = switch_to(ctx);
Modified: trunk/openbios-devel/arch/sparc64/openbios.c ============================================================================== --- trunk/openbios-devel/arch/sparc64/openbios.c Fri Apr 2 16:03:38 2010 (r728) +++ trunk/openbios-devel/arch/sparc64/openbios.c Fri Apr 2 16:14:34 2010 (r729) @@ -480,6 +480,7 @@ device_end();
bind_func("platform-boot", boot ); + bind_func("(go)", go); }
unsigned long isa_io_base;