Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
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 /* Tag variables with this */
0013 #define __tcmdata __section(".tcm.data")
0014 /* Tag constants with this */
0015 #define __tcmconst __section(".tcm.rodata")
0016 /* Tag functions inside TCM called from outside TCM with this */
0017 #define __tcmfunc __section(".tcm.text") noinline
0018 /* Tag function inside TCM called from inside TCM  with this */
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