Replace all __attribute__((aligned(x)) with aligned_data(x)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-07-27 18:19:12 +08:00
committed by Gustavo Henrique Nihei
parent 9c3799f130
commit b3f9ffbe72
71 changed files with 188 additions and 192 deletions
+1 -1
View File
@@ -336,7 +336,7 @@
/* DMA descriptor buffer alignment to 32 bytes */
#define NX_ALIGN32 __attribute__((aligned(32)))
#define NX_ALIGN32 aligned_data(32)
/****************************************************************************
* Public Variables
+3 -3
View File
@@ -250,12 +250,12 @@ struct rx65n_usbhost_list_s
/* Variable length buffer data follows */
};
struct rx65n_usbhost_ed_s __attribute__ ((aligned (32)));
struct rx65n_usbhost_gtd_s __attribute__ ((aligned (32)));
struct rx65n_usbhost_ed_s aligned_data(32);
struct rx65n_usbhost_gtd_s aligned_data(32);
/* This must be aligned to a 256-byte boundary */
static struct ohci_hcca_s g_hcca __attribute__ ((aligned (256)));
static struct ohci_hcca_s g_hcca aligned_data(256);
static struct ohci_hcca_s *HCCA;
static struct rx65n_usbhost_gtd_s *TDTAIL;