Changed unit macro to use section attribute directly.`

This commit is contained in:
Bahadir Balban
2008-02-09 14:33:37 +00:00
parent cc23568629
commit cd170c1b7c
2 changed files with 2 additions and 16 deletions

View File

@@ -17,19 +17,6 @@
/* use this to place code/data in a certain section */
#define SECTION(x) __attribute__((section(x)))
#define UNIT(x) __attribute__((section(".data." x)))
/*
* use WEAK to specifiy a weak function which can be replaced
* by a architecture specific optimization
* example: void WEAK bla()
*/
#define WEAK __attribute__(( weak ))
/*
* Marks a function as noreturn.
*/
#define NORETURN __attribute__(( noreturn ))
/* Functions for critical path optimizations */
#if (__GNUC__ >= 3)
@@ -110,5 +97,4 @@
printk(msg); \
BUG(); \
} while(0)
#endif /* !__MACROS_H__ */
#endif /* __MACROS_H__ */