mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 22:42:53 +00:00
mmu: replace ASSERT with panic in fetch_page_table_offset
all callers for fetch_page_table_offset should already make sure it will not come to an unknown table_leve, so just panic here. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
f5b3f2862c
commit
0b48ac96a9
@ -325,8 +325,10 @@ static uint32_t fetch_page_table_offset(void *addr, uint32_t table_level)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pr_err("Wrong page table level = 0x%lx", table_level);
|
/* all callers should already make sure it will not come
|
||||||
ASSERT(false, "Wrong page table level");
|
* to here
|
||||||
|
*/
|
||||||
|
panic("Wrong page table level");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user