Skip to content

Commit a44d700

Browse files
elfloader: Add a new morello-qemu platform init
Signed-off-by: Hesham Almatary <[email protected]>
1 parent 4bffb5c commit a44d700

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2021, Data61, CSIRO (ABN 41 687 119 230)
3+
*
4+
* SPDX-License-Identifier: GPL-2.0-only
5+
*/
6+
7+
#include <autoconf.h>
8+
#include <mode/arm_generic_timer.h>
9+
10+
/* Reset the virtual offset for the platform timer to 0 */
11+
void platform_init(void)
12+
{
13+
reset_cntvoff();
14+
}
15+
16+
#if CONFIG_MAX_NUM_NODES > 1
17+
void non_boot_init(void)
18+
{
19+
reset_cntvoff();
20+
}
21+
#endif

0 commit comments

Comments
 (0)