mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
committed by
Mark Cave-Ayland
parent
de891e0244
commit
075e485628
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user