blob: 6cb2e50e2254475a24155abd813a70d2ff4d989d [file] [log] [blame]
Andrew Scull18834872018-10-12 11:48:09 +01001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Scull18834872018-10-12 11:48:09 +01003 *
Andrew Walbrane959ec12020-06-17 15:01:09 +01004 * Use of this source code is governed by a BSD-style
5 * license that can be found in the LICENSE file or at
6 * https://opensource.org/licenses/BSD-3-Clause.
Andrew Scull18834872018-10-12 11:48:09 +01007 */
8
Andrew Scull18c78fc2018-08-20 12:57:41 +01009#include "hf/cpu.h"
J-Alves13394022021-06-30 13:48:49 +010010
Wedson Almeida Filhofed69022018-07-11 15:39:12 +010011/**
Wedson Almeida Filho987c0ff2018-06-20 16:34:38 +010012 * The entry point of CPUs when they are turned on. It is supposed to initialise
Wedson Almeida Filho87009642018-07-02 10:20:07 +010013 * all state and return the first vCPU to run.
Wedson Almeida Filho987c0ff2018-06-20 16:34:38 +010014 */
Wedson Almeida Filho00df6c72018-10-18 11:19:24 +010015struct vcpu *cpu_main(struct cpu *c)
Wedson Almeida Filho987c0ff2018-06-20 16:34:38 +010016{
Olivier Deprez148b5602022-03-16 17:13:06 +010017 return arch_vcpu_resume(c);
Wedson Almeida Filho987c0ff2018-06-20 16:34:38 +010018}