OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_processor/] [aeMB/] [sw/] [aemb/] [heap.hh] - Diff between revs 17 and 48

Show entire file | Details | Blame | View Log

Rev 17 Rev 48
Line 34... Line 34...
  /**
  /**
  Extracts the heap size from the linker
  Extracts the heap size from the linker
  @return heap size
  @return heap size
  */
  */
 
 
  inline int aembGetHeapSize()
  static inline int aembGetHeapSize()
  {
  {
    int tmp;
    int tmp;
    asm ("la %0, r0, _HEAP_SIZE":"=r"(tmp));
    asm ("la %0, r0, _HEAP_SIZE":"=r"(tmp));
    return tmp;
    return tmp;
  }
  }
Line 46... Line 46...
  /**
  /**
  Extracts the heap end from the linker
  Extracts the heap end from the linker
  @return heap end
  @return heap end
  */
  */
 
 
  inline int aembGetHeapEnd()
  static inline int aembGetHeapEnd()
  {
  {
    int tmp;
    int tmp;
    asm ("la %0, r0, _heap_end":"=r"(tmp));
    asm ("la %0, r0, _heap_end":"=r"(tmp));
    return tmp;
    return tmp;
  }
  }
Line 58... Line 58...
  /**
  /**
  Extracts the heap top from the linker
  Extracts the heap top from the linker
  @return heap top
  @return heap top
  */
  */
 
 
  inline int aembGetHeapTop()
  static inline int aembGetHeapTop()
  {
  {
    int tmp;
    int tmp;
    asm ("la %0, r0, _heap":"=r"(tmp));
    asm ("la %0, r0, _heap":"=r"(tmp));
    return tmp;
    return tmp;
  }
  }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.