From 208a3535b0a01955e05b9ba2f69abfa93098dc69 Mon Sep 17 00:00:00 2001 From: X512 Date: Tue, 22 Jun 2021 12:30:15 +0900 Subject: [PATCH] ahci: remove packed attribute from register structure It cause per-byte access instead of 32 bit on GCC/riscv64 that breaks operation. All fields are 32 bit so alignment is already fine and packing is not needed. Change-Id: Ie96eac6615c9326e84608be1c667bc5d3600c508 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4117 Reviewed-by: Adrien Destugues --- src/add-ons/kernel/busses/scsi/ahci/ahci_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_defs.h b/src/add-ons/kernel/busses/scsi/ahci/ahci_defs.h index 578defa00b..b016dab232 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_defs.h +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_defs.h @@ -129,7 +129,7 @@ typedef struct { uint32 devslp; // Device Sleep uint32 res[10]; // Reserved uint32 vendor[4]; // Vendor Specific -} _PACKED ahci_port; +} ahci_port; enum {