From 3b2b7186a5442e217dc59c531e3d687fccc5d3b6 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 26 Jul 2012 17:15:22 +0000 Subject: [PATCH] Remove '__attribute__((__packed__))' from structure definisions for Am7990 LANCE registers where no implicit padding is expected. gcc 4.5.3 seems to generate strange and wrong instructions (four moveb insns against u_short members) if packed attribute is specified in this case, then netboot fails immediately. Should be pulled up to netbsd-6. --- sys/arch/hp300/stand/common/if_lereg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/hp300/stand/common/if_lereg.h b/sys/arch/hp300/stand/common/if_lereg.h index a16508664e94..2eec01a4c646 100644 --- a/sys/arch/hp300/stand/common/if_lereg.h +++ b/sys/arch/hp300/stand/common/if_lereg.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_lereg.h,v 1.5 2005/12/11 12:17:19 christos Exp $ */ +/* $NetBSD: if_lereg.h,v 1.6 2012/07/26 17:15:22 tsutsui Exp $ */ /* * Copyright (c) 1982, 1990 The Regents of the University of California. @@ -50,7 +50,7 @@ struct lereg0 { vu_char ler0_id; /* ID */ u_char ler0_pad1; vu_char ler0_status; /* interrupt enable/status */ -} __attribute__((__packed__)); +}; /* * Control and status bits -- lereg0 @@ -65,7 +65,7 @@ struct lereg0 { struct lereg1 { vu_short ler1_rdp; /* data port */ vu_short ler1_rap; /* register select port */ -} __attribute__((__packed__)); +}; /* * Control and status bits -- lereg1