2008-01-15 Robert Millan <rmh@aybabtu.com>
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_get_integer_property): New function prototype. * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'. (grub_ieee1275_get_integer_property): New function. Wraps around grub_ieee1275_get_property() to handle endianess. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace grub_ieee1275_get_property() with grub_ieee1275_get_integer_property() where appropiate. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise. (grub_map): Likewise. * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
This commit is contained in:
parent
a83ccafd50
commit
66a6580720
6 changed files with 53 additions and 12 deletions
|
@ -56,8 +56,8 @@ grub_ieee1275_find_options (void)
|
|||
int is_smartfirmware = 0;
|
||||
|
||||
grub_ieee1275_finddevice ("/options", &options);
|
||||
rc = grub_ieee1275_get_property (options, "real-mode?", &realmode,
|
||||
sizeof realmode, 0);
|
||||
rc = grub_ieee1275_get_integer_property (options, "real-mode?", &realmode,
|
||||
sizeof realmode, 0);
|
||||
if ((rc >= 0) && realmode)
|
||||
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_REAL_MODE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue