/* Prepare efiemu. E.g. allocate memory, load the runtime
to appropriate place, etc */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 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/>.
*/
{
int conftable_handle;
int cntconftables = 0;
int i;
int handle;
/* Request space for the list of configuration tables */
cntconftables * sizeof (*conftables),
/* Switch from phase 1 (counting) to phase 2 (real job) */
/* Execute hooks */
/* Move runtime to its due place */
err = grub_efiemu_loadcore_load ();
if (err)
{
return err;
}
if (err)
{
return err;
}
= (struct SUFFIX (grub_efi_system_table) *)
/* Put pointer to the list of configuration tables in system table */
conftable_handle, 0, 1,
/* Fill the list of configuration tables */
i = 0;
{
else
}
if (err)
{
return err;
}
return GRUB_ERR_NONE;
}
{
int handle;
/* compute CRC32 of runtime_services */
if (err)
return err;
if (err)
return err;
/* compute CRC32 of system table */
return GRUB_ERR_NONE;
}