1 /* 2 * Copyright (c) BayLibre SAS 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_INCLUDE_ARM64_STRUCTS_H_ 8 #define ZEPHYR_INCLUDE_ARM64_STRUCTS_H_ 9 10 /* Per CPU architecture specifics */ 11 struct _cpu_arch { 12 #ifdef CONFIG_FPU_SHARING 13 atomic_ptr_val_t fpu_owner; 14 #endif 15 #ifdef CONFIG_ARM64_SAFE_EXCEPTION_STACK 16 uint64_t safe_exception_stack; 17 uint64_t current_stack_limit; 18 /* Saved the corrupted stack pointer when stack overflow, else 0 */ 19 uint64_t corrupted_sp; 20 #endif 21 }; 22 23 #endif /* ZEPHYR_INCLUDE_ARM64_STRUCTS_H_ */ 24