spe.h 474 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SPE_H
  7. #define SPE_H
  8. #include <stdbool.h>
  9. #if ENABLE_SPE_FOR_NS
  10. void spe_init_el3(void);
  11. void spe_init_el2_unused(void);
  12. void spe_disable(void);
  13. #else
  14. static inline void spe_init_el3(void)
  15. {
  16. }
  17. static inline void spe_init_el2_unused(void)
  18. {
  19. }
  20. static inline void spe_disable(void)
  21. {
  22. }
  23. #endif /* ENABLE_SPE_FOR_NS */
  24. #endif /* SPE_H */