From a4f30588796b384bac368fbc42e11d7baf4bdd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 3 Nov 2013 14:49:08 +0000 Subject: [PATCH] make resource descriptor structures packed --- include/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pci.h b/include/pci.h index 85b2cc5..e8d700e 100644 --- a/include/pci.h +++ b/include/pci.h @@ -106,7 +106,7 @@ typedef struct /* structure of resource descriptor */ unsigned long length; /* length of resource */ unsigned long offset; /* offset PCI to phys. CPU Address */ unsigned long dmaoffset; /* offset for DMA-transfers */ -} PCI_RSC_DESC; +} __attribute__ ((packed)) PCI_RSC_DESC; typedef struct /* structure of address conversion */ {