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