From a9d89c7d06e7041ee1186cee7f0673c614aea359 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 7 Jun 2020 19:46:41 +0200 Subject: [PATCH] fix: RAMFUNC --- include/common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 9f04d75c7..3c6245e52 100644 --- a/include/common.h +++ b/include/common.h @@ -70,7 +70,10 @@ extern int DBGLEVEL; #ifndef ABS # define ABS(a) ( ((a)<0) ? -(a) : (a) ) #endif -#define RAMFUNC __attribute((long_call, section(".ramfunc"))) + + +//#define RAMFUNC __attribute((long_call, section(".ramfunc"))) +#define RAMFUNC __attribute((long_call, section(".ramfunc"))) __attribute__((target("arm"))) #ifndef ROTR # define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))