cache_s.S 599 B

123456789101112131415161718192021
  1. #ifndef GRUB_MACHINE_EMU
  2. #error "This source is only meant for grub-emu platform"
  3. #endif
  4. /* An executable stack is not required for these functions. */
  5. #if defined (__linux__) && defined (__ELF__)
  6. .section .note.GNU-stack,"",%progbits
  7. #endif
  8. #if defined(__i386__) || defined(__x86_64__)
  9. /* Nothing is necessary. */
  10. #elif defined(__sparc__)
  11. #include "../sparc64/cache.S"
  12. #elif defined(__powerpc__)
  13. #include "../powerpc/cache.S"
  14. #elif defined(__ia64__) || defined(__arm__) || defined(__aarch64__) || \
  15. defined(__mips__) || defined(__riscv)
  16. #else
  17. #error "No target cpu type is defined"
  18. #endif