heap_scan_data.c 586 B

123456789101112131415161718192021222324
  1. #include "../private.h"
  2. #include "../node.h"
  3. #ifdef TARGET_SIMNT
  4. # define START _data_start__
  5. # define END _data_end__
  6. #else
  7. # define START wrs_kernel_data_start
  8. # define END wrs_kernel_data_end
  9. #endif
  10. extern char START, END;
  11. char *lub_heap_data_start = &START;
  12. char *lub_heap_data_end = &END;
  13. /*--------------------------------------------------------- */
  14. void lub_heap_scan_data(void)
  15. {
  16. /* now scan the memory */
  17. lub_heap_scan_memory(lub_heap_data_start,
  18. lub_heap_data_end - lub_heap_data_start);
  19. }
  20. /*--------------------------------------------------------- */