arch/x86: Use ENV_X86_64 instead of _x86_64_
Tested on Intel Sandybridge x86_64 and x86_32. Change-Id: I152483d24af0512c0ee4fbbe8931b7312e487ac6 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44867 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
e85e7af6d0
commit
adcf7827bd
@ -94,7 +94,7 @@ extern void _dead_code_assertion_failed(void) __attribute__((noreturn));
|
||||
*(type *)(uintptr_t)0; \
|
||||
})
|
||||
|
||||
#ifdef __x86_64__
|
||||
#if ENV_X86_64
|
||||
#define pointer_to_uint32_safe(x) ({ \
|
||||
if ((uintptr_t)(x) > 0xffffffffUL) \
|
||||
die("Cast from pointer to uint32_t overflows"); \
|
||||
|
Reference in New Issue
Block a user