The displayed output is only correct after a valid load, and so with subsequent enter/exits the information is noisy and actually wrong.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- libopenbios/initprogram.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/libopenbios/initprogram.c b/libopenbios/initprogram.c index 49b5dc2..ffd3254 100644 --- a/libopenbios/initprogram.c +++ b/libopenbios/initprogram.c @@ -113,18 +113,6 @@ void init_forth_context(void)
void go(void) { - ucell address, type; - int image_retval = 0; - - /* Get the entry point and the type (see forth/debugging/client.fs) */ - feval("load-state >ls.entry @"); - address = POP(); - feval("load-state >ls.file-type @"); - type = POP(); - - printk("\nJumping to entry point " FMT_ucellx " for type " FMT_ucellx "...\n", address, type); - - image_retval = start_elf(); - - printk("Image returned with return value %#x\n", image_retval); + /* Switch to the current context */ + start_elf(); }