Reverted the __packed and __aligned change.
We should not add compiler extensions, it is not our job. We are not a selfcontained project as kernel is so we should not introduce things like this. If we need to add some abstraction for this in the future to support compilers doing these things differently then we will do that the same way we dealt with the depricated attribute.
This commit is contained in:
@@ -86,7 +86,4 @@
|
||||
#define BIT30 (1<<30)
|
||||
#define BIT31 (1<<31)
|
||||
|
||||
#define __packed __attribute__((packed))
|
||||
#define __aligned(x) __attribute__((aligned(x)))
|
||||
|
||||
#endif
|
||||
|
||||
@@ -375,7 +375,7 @@ struct scb_exception_stack_frame {
|
||||
uint32_t lr;
|
||||
uint32_t pc;
|
||||
uint32_t xpsr;
|
||||
} __packed;
|
||||
} __attribute__((packed));
|
||||
|
||||
#define SCB_GET_EXCEPTION_STACK_FRAME(f) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user