mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 03:40:04 +00:00
Fix for arm64_32 (aka ILP32) on Clang
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
a3a0025e18
commit
b19f584f2c
@ -78,8 +78,10 @@ static inline uint32_t mbedtls_get_unaligned_volatile_uint32(volatile const unsi
|
||||
uint32_t r;
|
||||
#if defined(__arm__) || defined(__thumb__) || defined(__thumb2__)
|
||||
asm volatile ("ldr %0, [%1]" : "=r" (r) : "r" (p) :);
|
||||
#elif defined(__aarch64__)
|
||||
#elif defined(__aarch64__) && (SIZE_MAX == 0xffffffffffffffff)
|
||||
asm volatile ("ldr %w0, [%1]" : "=r" (r) : "r" (p) :);
|
||||
#elif defined(__aarch64__) && (SIZE_MAX == 0xffffffff)
|
||||
asm volatile ("ldr %w0, [%w1]" : "=r" (r) : "r" (p) :);
|
||||
#endif
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user