Finish the use of saved-program-state within the loaders. This involves 2 changes: firstly ensure that the saved-program-state

is being set correctly in all of the loaders, and secondly we change the bootinfo loader so that the bootscript is executed as 
part of init-program and not go. This seems to reflect the idea of execute-buffer in OpenBOOT that any Forth code is executed 
directly during init-program, rather than being deferred to go.

Note: the latter change is fairly simple, but I have been unable to test it myself other than verifying it compiles.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@724 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-04-02 10:28:48 +00:00
committed by Mark Cave-Ayland
parent de891e0244
commit 075e485628
4 changed files with 43 additions and 13 deletions

View File

@@ -95,6 +95,12 @@ fcode_init_program(void)
fword("load-base");
address = POP();
if (!is_fcode((unsigned char *)address)) {
debug("Not a valid Fcode memory image\n");
return;
}
PUSH(address);
PUSH(1);
fword("byte-load");