esp32.rom.syscalls.ld 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* These ROM functions call respective entries in the syscall table.
  2. They are called by other ROM functions (mostly from newlib).
  3. We don't link to them directly, since in IDF there are actual
  4. implementations of these functions, with same names.
  5. I.e.:
  6. times (in ROM) -> _times_r (in ROM) -> syscall table entry _times_r -> _times_r (in IDF)
  7. Hence the following entries are provided only for reference
  8. and commented out.
  9. */
  10. /* <--- the following lines are commented out
  11. PROVIDE ( calloc = 0x4000bee4 );
  12. PROVIDE ( free = 0x4000beb8 );
  13. PROVIDE ( _free_r = 0x4000bbcc );
  14. PROVIDE ( _getpid_r = 0x4000bcfc );
  15. PROVIDE ( __getreent = 0x4000be8c );
  16. PROVIDE ( _gettimeofday_r = 0x4000bc58 );
  17. PROVIDE ( _kill_r = 0x4000bd10 );
  18. PROVIDE ( _lock_acquire = 0x4000be14 );
  19. PROVIDE ( _lock_acquire_recursive = 0x4000be28 );
  20. PROVIDE ( _lock_close = 0x4000bdec );
  21. PROVIDE ( _lock_close_recursive = 0x4000be00 );
  22. PROVIDE ( _lock_init = 0x4000bdc4 );
  23. PROVIDE ( _lock_init_recursive = 0x4000bdd8 );
  24. PROVIDE ( _lock_release = 0x4000be64 );
  25. PROVIDE ( _lock_release_recursive = 0x4000be78 );
  26. PROVIDE ( _lock_try_acquire = 0x4000be3c );
  27. PROVIDE ( _lock_try_acquire_recursive = 0x4000be50 );
  28. PROVIDE ( malloc = 0x4000bea0 );
  29. PROVIDE ( _malloc_r = 0x4000bbb4 );
  30. PROVIDE ( _raise_r = 0x4000bc70 );
  31. PROVIDE ( realloc = 0x4000becc );
  32. PROVIDE ( _realloc_r = 0x4000bbe0 );
  33. PROVIDE ( _sbrk_r = 0x4000bce4 );
  34. PROVIDE ( _system_r = 0x4000bc10 );
  35. PROVIDE ( _times_r = 0x4000bc40 );
  36. PROVIDE ( _close_r = 0x4000bd3c );
  37. PROVIDE ( _exit_r = 0x4000bd28 );
  38. PROVIDE ( _fstat_r = 0x4000bccc );
  39. PROVIDE ( _link_r = 0x4000bc9c );
  40. PROVIDE ( _lseek_r = 0x4000bd8c );
  41. PROVIDE ( _open_r = 0x4000bd54 );
  42. PROVIDE ( _read_r = 0x4000bda8 );
  43. PROVIDE ( _rename_r = 0x4000bc28 );
  44. PROVIDE ( _unlink_r = 0x4000bc84 );
  45. PROVIDE ( _write_r = 0x4000bd70 );
  46. ---> end commented out block
  47. */
  48. /* These are the non-reentrant versions of syscalls present in the ROM.
  49. They call the reentrant versions, passing the pointer returned by __getreent
  50. as the first argument.
  51. */
  52. close = 0x40001778;
  53. open = 0x4000178c;
  54. read = 0x400017dc;
  55. sbrk = 0x400017f4;
  56. times = 0x40001808;
  57. write = 0x4000181c;