Sebastian Herbszt
2010-Jul-27 21:07 UTC
[syslinux] Return from syslinux_local_boot(), syslinux_run_command() and syslinux_boot_linux()
gfxboot uses those three calls, but currently doesn't really handle returns
from them.
syslinux_boot_linux (lib/syslinux/load_linux.c) can return ("bail"
label).
syslinux_local_boot (lib/syslinux/localboot.c) has a comment which says
"returns
only on failure". The documentation for "Local boot" in
doc/comboot.txt says "Does
not return". Which is correct?
syslinux_run_command (lib/syslinux/run_command.c) should not return according to
the comment in the source file. This seems compliant with the documentation of
"Run
command" in doc/comboot.txt.
Can i assume gfxboot only needs to handle returns from syslinux_boot_linux() ?
Sebastian
H. Peter Anvin
2010-Jul-27 22:05 UTC
[syslinux] Return from syslinux_local_boot(), syslinux_run_command() and syslinux_boot_linux()
On 07/27/2010 02:07 PM, Sebastian Herbszt wrote:> gfxboot uses those three calls, but currently doesn't really handle > returns from them. > syslinux_boot_linux (lib/syslinux/load_linux.c) can return ("bail" label). > syslinux_local_boot (lib/syslinux/localboot.c) has a comment which says > "returns > only on failure". The documentation for "Local boot" in doc/comboot.txt > says "Does > not return". Which is correct? > > syslinux_run_command (lib/syslinux/run_command.c) should not return > according to > the comment in the source file. This seems compliant with the > documentation of "Run > command" in doc/comboot.txt. > > Can i assume gfxboot only needs to handle returns from > syslinux_boot_linux() ? >syslinux_local_boot() can return if local boot is not supported on the current platform. There currently are no such platforms, but nevertheless. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.