mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: replace improper use of ASSERT with panic for parse_madt
ASSERT could be used in some situations, such as, there are some pre-assumption for some code, using ASSERT here for debug. It could not be used for detect error when system booting where panic should be used. Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -39,7 +39,7 @@ static void init_percpu_lapic_id(void)
|
||||
pcpu_num = parse_madt(lapic_id_array);
|
||||
if (pcpu_num == 0U) {
|
||||
/* failed to get the physcial cpu number */
|
||||
ASSERT(false);
|
||||
panic("failed to get the physcial cpu number");
|
||||
}
|
||||
|
||||
phys_cpu_num = pcpu_num;
|
||||
|
Reference in New Issue
Block a user