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:
huihuang shi
2018-06-01 13:51:16 +08:00
committed by lijinxia
parent cd5d8c8da7
commit 14b2e1d395
4 changed files with 32 additions and 33 deletions

View File

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