Skip to content

Commit

Permalink
elfloader: Add a new morello-qemu platform init
Browse files Browse the repository at this point in the history
Signed-off-by: Hesham Almatary <[email protected]>
  • Loading branch information
heshamelmatary committed Jan 11, 2024
1 parent e4fd829 commit af46089
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions elfloader-tool/src/plat/morello-qemu/platform_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2021, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: GPL-2.0-only
*/

#include <autoconf.h>
#include <mode/arm_generic_timer.h>

/* Reset the virtual offset for the platform timer to 0 */
void platform_init(void)
{
reset_cntvoff();
}

#if CONFIG_MAX_NUM_NODES > 1
void non_boot_init(void)
{
reset_cntvoff();
}
#endif

0 comments on commit af46089

Please sign in to comment.