/* appleloader.c - apple legacy boot loader. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008,2009 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
static grub_err_t
grub_appleloader_unload (void)
{
cmdline = 0;
return GRUB_ERR_NONE;
}
static grub_err_t
grub_appleloader_boot (void)
{
return grub_errno;
}
struct piwg_full_device_path
{
};
{ \
.comp1 = \
{ \
.header = { \
.length = {sizeof (struct grub_efi_memory_mapped_device_path), 0} \
}, \
.start_address = st, \
.end_address = en \
}, \
.comp2 = \
{ \
.header = { \
.length = {sizeof (struct grub_efi_piwg_device_path), 0} \
}, \
0x01, 0xAE, 0xF2, 0xB7}} \
}, \
.end = \
{ \
.length = {sizeof (struct grub_efi_device_path), 0} \
} \
}
/* early 2006 Core Duo / Core Solo models */
0xfff9ffff);
/* mid-2006 Mac Pro (and probably other Core 2 models) */
0xfff7ffff);
/* mid-2007 MBP ("Santa Rosa" based models) */
0xfff8ffff);
/* early-2008 MBA */
0xfff8ffff);
0xffffbfff);
0xffffbfff);
struct devdata
{
const char *model;
};
{
};
static grub_err_t
{
/* Initialize some global variables. */
image_handle = 0;
break;
{
goto fail;
}
if (! loaded_image)
{
goto fail;
}
if (argc > 0)
{
int i, len;
len *= sizeof (grub_efi_char16_t);
if (! cmdline)
goto fail;
for (i = 0; i < argc; i++)
{
char *p8;
while (*p8)
*(p16++) = ' ';
}
*(--p16) = 0;
}
return 0;
fail:
return grub_errno;
}
{
}
{
}