| 1 |
// Symbian-specific file. |
| 2 |
|
| 3 |
// INCLUDE FILES |
| 4 |
#include <e32def.h> |
| 5 |
|
| 6 |
#include "private/gcconfig.h" |
| 7 |
#include "gc.h" |
| 8 |
|
| 9 |
extern "C" { |
| 10 |
|
| 11 |
void GC_init_global_static_roots() |
| 12 |
{ |
| 13 |
ptr_t dataStart; |
| 14 |
ptr_t dataEnd; |
| 15 |
# if defined (__WINS__) |
| 16 |
extern int winscw_data_start, winscw_data_end; |
| 17 |
dataStart = ((ptr_t)&winscw_data_start); |
| 18 |
dataEnd = ((ptr_t)&winscw_data_end); |
| 19 |
# else |
| 20 |
extern int Image$$RW$$Limit[], Image$$RW$$Base[]; |
| 21 |
dataStart = ((ptr_t)Image$$RW$$Base); |
| 22 |
dataEnd = ((ptr_t)Image$$RW$$Limit); |
| 23 |
# endif |
| 24 |
|
| 25 |
GC_add_roots(dataStart, dataEnd); |
| 26 |
} |
| 27 |
|
| 28 |
} /* extern "C" */ |