mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
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:
committed by
ACRN System Integration
parent
e352553e1a
commit
600aa8ea5a
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user