2004-07-27 Marco Gerards <metgerards@student.han.nl>
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New function. * commands/boot.c: Remove the check for `GRUB_UTIL'. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add `loader/powerpc/ieee1275/linux.c', `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_release): New prototype. * include/grub/powerpc/ieee1275/loader.h: Rewritten. * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize normal, boot, linux and linux_normal. * loader/powerpc/ieee1275/linux.c: New file. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
This commit is contained in:
parent
5a9e354626
commit
a447c5dfb2
9 changed files with 398 additions and 31 deletions
|
@ -419,6 +419,25 @@ grub_ieee1275_claim (void *p, grub_size_t size,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
grub_ieee1275_release (void *p, grub_size_t size)
|
||||
{
|
||||
struct release_args {
|
||||
struct grub_ieee1275_common_hdr common;
|
||||
void *p;
|
||||
grub_size_t size;
|
||||
} args;
|
||||
|
||||
INIT_IEEE1275_COMMON (&args.common, "release", 2, 0);
|
||||
args.p = p;
|
||||
args.size = size;
|
||||
|
||||
if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
grub_ieee1275_set_property (grub_ieee1275_phandle_t phandle,
|
||||
const char *propname, void *buf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue