eabi_compat.c 750 B

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