openbios/packages
Mark Cave-Ayland 6fc5490981 disk-label.c: Fix opening of raw block devices
If open-dev is called on a raw block device such as cdrom, the current code
will always attempt to interpose a partition handler for the first valid
partition table type it finds.

This is incorrect when opening a raw block device directly as it means we
"fall into" the first valid partition that can be found, rather than using
the full raw device. Fix this by only attempting to interpose a partition
handler if the package arguments are not empty.

This fixes the NetBSD SPARC64 bootloader as reported by
Martin Husemann in https://bugs.launchpad.net/qemu/+bug/1169856.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1127 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-21 08:27:21 +00:00
..
bootinfo-loader.c Move the bootinfo loader into libopenbios, refactoring and adding the new CONFIG_LOADER_BOOTINFO as appropriate. 2010-04-02 09:18:51 +00:00
build.xml Remove /packages/misc-files since it is no longer required now that each filesystem has its own package. 2010-07-11 21:32:38 +00:00
cmdline.c Use standard types 2010-08-01 21:25:08 +00:00
cmdline.fs Add missing files from previous refactoring commit and also fix a slight error in libopenbios/build.xml. 2010-03-13 12:44:22 +00:00
deblocker.c Don't assume that pointer and cell size are identical, part 1 2010-10-25 20:48:45 +00:00
disk-label.c disk-label.c: Fix opening of raw block devices 2013-04-21 08:27:21 +00:00
disk-label.fs As documented on the mailing lists, change the interposition order of the disk packages from: 2010-06-08 20:59:08 +00:00
elf-loader.c Move the *_init_program() functions into the main loader source files so that everything is in one place. Part of this 2010-03-28 23:47:36 +00:00
init.c Fix incorrect CONFIG constant in init.c. 2010-07-11 22:41:34 +00:00
mac-parts.c loader: implement new loader type for CHRP/Apple partition bootcode (%BOOT) 2013-04-05 09:35:08 +00:00
mac-parts.h As documented on the mailing lists, change the interposition order of the disk packages from: 2010-06-08 20:59:08 +00:00
nvram.c Don't assume that pointer and cell size are identical, part 1 2010-10-25 20:48:45 +00:00
packages.h Move the grubfs filesystem handler into its own new package /packages/grubfs-files. This is the last of the filesystems to be 2010-07-04 13:37:00 +00:00
pc-parts.c Switch partition argument parsing to use left-parse-string as per CHRP bindings. 2013-01-13 15:26:57 +00:00
sun-parts.c sun-parts.c: Fix NULL-dereferencing in sunparts_open 2013-04-06 17:31:25 +00:00
video.c video.c: Fix compilation when CONFIG_DEBUG_CONSOLE_VIDEO is set to false. 2013-01-16 22:51:51 +00:00
xcoff-loader.c Move the *_init_program() functions into the main loader source files so that everything is in one place. Part of this 2010-03-28 23:47:36 +00:00