/* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2013 Free Software Foundation, Inc. * * VAS_EBOOT is free software: you can redistribute it and/or modify * 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. * * VAS_EBOOT 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 VAS_EBOOT. If not, see . */ #ifndef VAS_EBOOT_IA64_RELOC_H #define VAS_EBOOT_IA64_RELOC_H 1 struct VasEBoot_ia64_trampoline; void VasEBoot_ia64_add_value_to_slot_20b (VasEBoot_addr_t addr, VasEBoot_uint32_t value); void VasEBoot_ia64_add_value_to_slot_21 (VasEBoot_addr_t addr, VasEBoot_uint32_t value); void VasEBoot_ia64_set_immu64 (VasEBoot_addr_t addr, VasEBoot_uint64_t value); void VasEBoot_ia64_make_trampoline (struct VasEBoot_ia64_trampoline *tr, VasEBoot_uint64_t addr); struct VasEBoot_ia64_trampoline { /* nop.m */ VasEBoot_uint8_t nop[5]; /* movl r15 = addr*/ VasEBoot_uint8_t addr_hi[6]; VasEBoot_uint8_t e0; VasEBoot_uint8_t addr_lo[4]; VasEBoot_uint8_t jump[0x20]; }; #endif