/*
* 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/>.
*/
#include <grub/relocator_private.h>
/* Do we need mips64? */
- &grub_relocator_##x##_start)
+ REGW_SIZEOF * 3)
void
grub_cpu_relocator_init (void)
{
}
static void
{
/* lui $r, (val+0x8000). */
/* addiu $r, $r, val. */
| (val & 0xffff));
}
static void
{
/* j $r. */
/* nop. */
*(grub_uint32_t *) *target = 0;
}
void
{
}
void
{
}
void
{
}
struct grub_relocator32_state state)
{
void *ptr;
void *relst;
unsigned i;
(0xffffffff - stateset_size)
+ 1, stateset_size,
sizeof (grub_uint32_t),
if (err)
return err;
for (i = 1; i < 32; i++)
if (err)
return err;
((void (*) (void)) relst) ();
/* Not reached. */
return GRUB_ERR_NONE;
}