blob: 9c471c94184813f4810bcf674a5a4ad6ca640a99 [file] [log] [blame]
/*
* init.c - common boot-wrapper initialization
*
* Copyright (C) 2021 ARM Limited. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE.txt file.
*/
#include <cpu.h>
#include <platform.h>
static void announce_bootwrapper(void)
{
print_string("Boot-wrapper v0.2\r\n\r\n");
}
void cpu_init_bootwrapper(void)
{
if (this_cpu_logical_id() == 0) {
init_uart();
announce_bootwrapper();
init_platform();
}
}