From 7725b85d89d0fec4e68d883f8ba672539071720d Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 31 Mar 2014 06:58:11 +0000 Subject: the hardware expects ahci_cmd_table to be 128 byte aligned --- sys/dev/ic/ahcivar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/ahcivar.h b/sys/dev/ic/ahcivar.h index 5b2dabefc3d..ee3e2fa9692 100644 --- a/sys/dev/ic/ahcivar.h +++ b/sys/dev/ic/ahcivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ahcivar.h,v 1.6 2014/03/31 04:46:59 dlg Exp $ */ +/* $OpenBSD: ahcivar.h,v 1.7 2014/03/31 06:58:10 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne @@ -73,7 +73,7 @@ struct ahci_cmd_table { u_int8_t reserved[48]; struct ahci_prdt prdt[AHCI_MAX_PRDT]; -} __packed; +} __packed __aligned(128); #define AHCI_MAX_PORTS 32 -- cgit v1.2.3