Skip to content

Commit

Permalink
[IA64] Make PCDP work again.
Browse files Browse the repository at this point in the history
Mark's patch added "attribute((packed))" for pcdp_uart, without
accounting for the fact that the structure definition _relied_ on
implicit padding by 6 bytes.  Fix is to make the padding explicit.

Signed-off-by: David Mosberger-Tang <David.Mosberger@acm.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
David Mosberger-Tang authored and Tony Luck committed Jul 13, 2005
1 parent 59a0a8a commit f62c4a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firmware/pcdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ struct pcdp_uart {
u32 clock_rate;
u8 pci_prog_intfc;
u8 flags;
u16 conout_index;
u32 reserved;
} __attribute__((packed));

#define PCDP_IF_PCI 1
Expand Down

0 comments on commit f62c4a9

Please sign in to comment.