hv: replace improper use of panic with ASSERT

Panic should only be used when system booting. Once the system boot done,
it could never be used. While ASSERT could be used in some situations, such
as, there are some pre-assumption for some code, using ASSERT here for debug.

Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@inte.com>
This commit is contained in:
Li, Fei1
2019-01-30 19:45:49 +08:00
committed by wenlingz
parent a01c3cb913
commit 2474c60141
3 changed files with 57 additions and 54 deletions

View File

@@ -174,7 +174,7 @@ void run_sched_thread(struct sched_object *obj)
obj->thread(obj);
}
panic("Shouldn't go here, invalid thread!");
ASSERT(false, "Shouldn't go here, invalid thread!");
}
void switch_to_idle(run_thread_t idle_thread)