appleloader.c revision 2
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster/* appleloader.c - apple legacy boot loader. */
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * GRUB -- GRand Unified Bootloader
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * Copyright (C) 2008,2009 Free Software Foundation, Inc.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * GRUB is free software: you can redistribute it and/or modify
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * it under the terms of the GNU General Public License as published by
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * the Free Software Foundation, either version 3 of the License, or
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * (at your option) any later version.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * GRUB is distributed in the hope that it will be useful,
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * but WITHOUT ANY WARRANTY; without even the implied warranty of
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * GNU General Public License for more details.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * You should have received a copy of the GNU General Public License
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster efi_call_3 (b->start_image, image_handle, 0, 0);
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster struct grub_efi_memory_mapped_device_path comp1;
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster .subtype = GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE, \
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster .length = {sizeof (struct grub_efi_memory_mapped_device_path), 0} \
.comp2 = \
.header = { \
.end = \
struct devdata
const char *model;
static grub_err_t
image_handle = 0;
goto fail;
if (! loaded_image)
goto fail;
if (argc > 0)
int i, len;
if (! cmdline)
goto fail;
for (i = 0; i < argc; i++)
char *p8;
while (*p8)
*(--p16) = 0;
fail:
return grub_errno;