wolfBoot/hal/x86_fsp_qemu_loader.c

95 lines
1.6 KiB
C

/* x86_fsp_qemu_loader.c
*
* Copyright (C) 2023 wolfSSL Inc.
*
* This file is part of wolfBoot.
*
* wolfBoot 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.
*
* wolfBoot 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 this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#include <wolfboot/wolfboot.h>
#include <stdint.h>
#include <string.h>
#include <uart_drv.h>
#ifdef __WOLFBOOT
#include <printf.h>
static void panic(void);
void hal_init(void)
{
}
void hal_prepare_boot(void)
{
}
#endif
int hal_flash_write(uintptr_t address, const uint8_t *data, int len)
{
return 0;
}
void hal_flash_unlock(void)
{
}
void hal_flash_lock(void)
{
}
int hal_flash_erase(uintptr_t address, int len)
{
return 0;
}
int wolfBoot_fallback_is_possible(void)
{
return 0;
}
int wolfBoot_dualboot_candidate(void)
{
return PART_BOOT;
}
void* hal_get_primary_address(void)
{
return (void*)0;
}
void* hal_get_update_address(void)
{
return (void*)0;
}
void *hal_get_dts_address(void)
{
return 0;
}
void *hal_get_dts_update_address(void)
{
return 0;
}
static void panic(void)
{
while(1) {}
}