1
0

heap_scan_data.c 609 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
  15. lub_heap_scan_data(void)
  16. {
  17. /* now scan the memory */
  18. lub_heap_scan_memory(lub_heap_data_start,
  19. lub_heap_data_end-lub_heap_data_start);
  20. }
  21. /*--------------------------------------------------------- */