HV: change param type of init_pcpu_pre

When initialize secondary pcpu, pass INVALID_CPU_ID as param of init_pcpu_pre()
looks weird, so change the param type to bool to represent whether the pcpu is
a BSP or AP.

Tracked-On: #3420

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2019-07-17 10:02:56 +08:00
committed by ACRN System Integration
parent e352553e1a
commit 600aa8ea5a
3 changed files with 7 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ void init_primary_pcpu(void)
{
uint64_t rsp;
init_pcpu_pre(BOOT_CPU_ID);
init_pcpu_pre(true);
/* Switch to run-time stack */
rsp = (uint64_t)(&get_cpu_var(stack)[CONFIG_STACK_SIZE - 1]);
@@ -94,7 +94,7 @@ void init_secondary_pcpu(void)
{
uint16_t pcpu_id;
init_pcpu_pre(INVALID_CPU_ID);
init_pcpu_pre(false);
pcpu_id = get_pcpu_id();