mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 11:50:30 +00:00
HV/DM: Unify the usage of aligned for structure definition with alignment
Now one macro is added to define the alignment requirement. >#define __aligned(x) __attribute__((aligned(x))) Some code uses the __aligned(x) to define the alignment while the other code uses the original alignment definition. So they are unified. Tracked-On: projectacrn/acrn-hypervisor#2131 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#define _MULTIBOOT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
struct multiboot_info;
|
||||
extern struct multiboot_info mbi;
|
||||
@@ -144,7 +145,7 @@ struct multiboot_info {
|
||||
uint32_t unused_mi_vbe_interface_seg;
|
||||
uint32_t unused_mi_vbe_interface_off;
|
||||
uint32_t unused_mi_vbe_interface_len;
|
||||
}__attribute__((aligned(8)));
|
||||
}__aligned(8);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user