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:
Li, Fei1
2019-01-30 20:04:16 +08:00
committed by wenlingz
parent 9291fbe4d6
commit 5214a60bbf
2 changed files with 9 additions and 7 deletions

View File

@@ -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;