But this fix will open a bug since lar tool is not setting entry or
start correctly :-)

start is currently set to entry, and entry is set to 0.

ron
for XIP, lar is supposed to use entry point, not start. 

This fix reveals a bug in lar which I will try to fix next. Lar 
is setting start to entry, and is setting entry to 0

Signed-off-by: Ronald G. Minnich <[EMAIL PROTECTED]>

Index: lib/lar.c
===================================================================
--- lib/lar.c	(revision 518)
+++ lib/lar.c	(working copy)
@@ -263,9 +263,9 @@
 			       filename);
 			return 1;
 		}
-		where = result.start;
+		where = result.entry;
 	}
-	printk(BIOS_SPEW, "where is %p\n", where);
+	printk(BIOS_SPEW, "Entry point is %p\n", where);
 	ret = run_address(where);
 	printk(BIOS_SPEW, "run_file returns with %d\n", ret);
 	return ret;
-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to