Commit 6ced9117 authored by Oded Gabbay's avatar Oded Gabbay

habanalabs: align armcp_packet structure to 8 bytes

Once there is a 64-bit field in a structure, GCC compiler for ARM aligns
the structure to 8 bytes. In order to avoid confusion when these
structures are being passed between CPUs from different architectures, we
explicitly align the structure to 8 bytes.
Reviewed-by: default avatarOmer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 3bf1c021
...@@ -276,6 +276,8 @@ struct armcp_packet { ...@@ -276,6 +276,8 @@ struct armcp_packet {
/* For get Armcp info/EEPROM data */ /* For get Armcp info/EEPROM data */
__le32 data_max_size; __le32 data_max_size;
}; };
__le32 reserved;
}; };
struct armcp_unmask_irq_arr_packet { struct armcp_unmask_irq_arr_packet {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment