0001
0002
0003 #ifndef __ASM_CSKY_TCM_H
0004 #define __ASM_CSKY_TCM_H
0005
0006 #ifndef CONFIG_HAVE_TCM
0007 #error "You should not be including tcm.h unless you have a TCM!"
0008 #endif
0009
0010 #include <linux/compiler.h>
0011
0012
0013 #define __tcmdata __section(".tcm.data")
0014
0015 #define __tcmconst __section(".tcm.rodata")
0016
0017 #define __tcmfunc __section(".tcm.text") noinline
0018
0019 #define __tcmlocalfunc __section(".tcm.text")
0020
0021 void *tcm_alloc(size_t len);
0022 void tcm_free(void *addr, size_t len);
0023
0024 #endif