2 Sep 2009 01:44
r576 - trunk/openbios-devel/arch/ppc/qemu
Author: laurent Date: 2009-09-02 01:44:24 +0200 (Wed, 02 Sep 2009) New Revision: 576 Modified: trunk/openbios-devel/arch/ppc/qemu/main.c Log: Use the load method to load and execute CHRP script. This adds a better support of Apple BootX script. However, "init-program" and "go" are always missing to be able to really boot with BootX. Signed-off-by: Laurent Vivier <Laurent@...> Modified: trunk/openbios-devel/arch/ppc/qemu/main.c =================================================================== --- trunk/openbios-devel/arch/ppc/qemu/main.c 2009-08-30 23:39:55 UTC (rev 575) +++ trunk/openbios-devel/arch/ppc/qemu/main.c 2009-09-01 23:44:24 UTC (rev 576) <at> <at> -39,6 +39,14 <at> <at> #define NEWWORLD_DPRINTF(fmt, args...) SUBSYS_DPRINTF("NEWWORLD", fmt, ##args) static void +load(const char *path) +{ + char buffer[1024]; + sprintf(buffer, "load %s", path); + feval(buffer); +} + +static void(Continue reading)
> Maybe dlabel_open is getting called somewhere in bootloader
> without proper path argument?
In fact, patch r565 modifies the behavior of dlabel_open() because
filename is not NULL anymore if path is empty.
This new patch corrects the problem:
RSS Feed