eabi_compat.c 747 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Utility functions needed for (some) EABI conformant tool chains.
  4. *
  5. * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
  6. */
  7. #include <common.h>
  8. int raise (int signum)
  9. {
  10. /* Even if printf() is available, it's large. Punt it for SPL builds */
  11. #if !defined(CONFIG_SPL_BUILD)
  12. printf("raise: Signal # %d caught\n", signum);
  13. #endif
  14. return 0;
  15. }
  16. /* Dummy function to avoid linker complaints */
  17. void __aeabi_unwind_cpp_pr0(void)
  18. {
  19. }
  20. void __aeabi_unwind_cpp_pr1(void)
  21. {
  22. }
  23. /* Copy memory like memcpy, but no return value required. */
  24. void __aeabi_memcpy(void *dest, const void *src, size_t n)
  25. {
  26. (void) memcpy(dest, src, n);
  27. }
  28. void __aeabi_memset(void *dest, size_t n, int c)
  29. {
  30. (void) memset(dest, c, n);
  31. }