1 /* 2 * Copyright (c) 2020, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __CRT_IMPL_PRIVATE_H__ 9 #define __CRT_IMPL_PRIVATE_H__ 10 11 #include <stddef.h> 12 #include <stdint.h> 13 14 #define ADDR_WORD_UNALIGNED(x) ((x) & 0x3) 15 16 union composite_addr_t { 17 uintptr_t uint_addr; /* Address as integer value */ 18 uint8_t *p_byte; /* Address in BYTE pointer */ 19 uint32_t *p_word; /* Address in WORD pointer */ 20 }; 21 22 #endif /* __CRT_IMPL_PRIVATE_H__ */ 23