mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
fix "ISO C99 does not support '_Static_assert'"
_Static_assert is supported in C11 standard. Please see N1570(C11 mannual) 6.4.1. replace _Static_assert with ASSERT. Signed-off-by: huihuang shi <huihuang.shi@intel.com>
This commit is contained in:
@@ -421,7 +421,7 @@ uint64_t create_guest_initial_paging(struct vm *vm)
|
||||
void *addr = NULL;
|
||||
void *pml4_addr = GPA2HVA(vm, GUEST_INIT_PAGE_TABLE_START);
|
||||
|
||||
_Static_assert((GUEST_INIT_PAGE_TABLE_START + 7 * PAGE_SIZE_4K) <
|
||||
ASSERT((GUEST_INIT_PAGE_TABLE_START + 7 * PAGE_SIZE_4K) <
|
||||
RSDP_F_ADDR, "RSDP fix segment could be override");
|
||||
|
||||
if (GUEST_INIT_PAGE_TABLE_SKIP_SIZE <
|
||||
|
Reference in New Issue
Block a user