sram.h 511 B

12345678910111213141516
  1. int omap_sram_init(void);
  2. void omap_map_sram(unsigned long start, unsigned long size,
  3. unsigned long skip, int cached);
  4. void omap_sram_reset(void);
  5. extern void *omap_sram_push_address(unsigned long size);
  6. /* Macro to push a function to the internal SRAM, using the fncpy API */
  7. #define omap_sram_push(funcp, size) ({ \
  8. typeof(&(funcp)) _res = NULL; \
  9. void *_sram_address = omap_sram_push_address(size); \
  10. if (_sram_address) \
  11. _res = fncpy(_sram_address, &(funcp), size); \
  12. _res; \
  13. })