mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Changed unit macro to use section attribute directly.`
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user