summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/sram.h
blob: c60025a45ee16d6a592f1fd24035b80ff8d97d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int omap_sram_init(void);

extern void *omap_sram_push_address(unsigned long size);

/* Macro to push a function to the internal SRAM, using the fncpy API */
#define omap_sram_push(funcp, size) ({				\
	typeof(&(funcp)) _res = NULL;				\
	void *_sram_address = omap_sram_push_address(size);	\
	if (_sram_address)					\
		_res = fncpy(_sram_address, &(funcp), size);	\
	_res;							\
})