From cc220d920182a168cc46fb144dd21b07f8745caf Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Thu, 1 Oct 2015 15:14:50 +1000 Subject: [PATCH] Moved TEXT_SECTION_ATTR macro to its own header. --- app/include/rtc/rtctime.h | 1 + app/include/sections.h | 6 ++++++ app/user/user_exceptions.h | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 app/include/sections.h diff --git a/app/include/rtc/rtctime.h b/app/include/rtc/rtctime.h index 574b5013..f8a94b7b 100644 --- a/app/include/rtc/rtctime.h +++ b/app/include/rtc/rtctime.h @@ -39,6 +39,7 @@ */ #include +#include "sections.h" #ifndef _RTCTIME_INTERNAL_H_ struct rtc_timeval diff --git a/app/include/sections.h b/app/include/sections.h new file mode 100644 index 00000000..d09c576e --- /dev/null +++ b/app/include/sections.h @@ -0,0 +1,6 @@ +#ifndef _SECTIONS_H_ +#define _SECTIONS_H_ + +#define TEXT_SECTION_ATTR __attribute__((section(".text"))) + +#endif diff --git a/app/user/user_exceptions.h b/app/user/user_exceptions.h index d2cf5166..ae9be64e 100644 --- a/app/user/user_exceptions.h +++ b/app/user/user_exceptions.h @@ -1,4 +1,4 @@ -#include "c_types.h" +#include "sections.h" #include "rom.h" #include