diff options
| author | mrg <mrg@NetBSD.org> | 2020-09-07 23:41:38 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2020-09-07 23:41:38 +0000 |
| commit | f2010d1ae3de1ba61284e1a0a8a01aacaea88390 (patch) | |
| tree | 8d878259401ed37488f176a57b1bcb1cc37c24de /sys/arch/sun3 | |
| parent | a760fc064143b102b9400bb1cba72694a6b15a52 (diff) | |
move the __packed attribute from struct frame::F_t into the single
unaligned member inside. CTASSERT() the size is unchanged.
with this, sun3 and GCC 9 appears to work.
Diffstat (limited to 'sys/arch/sun3')
| -rw-r--r-- | sys/arch/sun3/sun3/machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c index aedd1b96eb1..b0719290e4a 100644 --- a/sys/arch/sun3/sun3/machdep.c +++ b/sys/arch/sun3/sun3/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.212 2020/06/11 19:20:45 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.213 2020/09/07 23:41:38 mrg Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -78,7 +78,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.212 2020/06/11 19:20:45 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.213 2020/09/07 23:41:38 mrg Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -137,6 +137,8 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.212 2020/06/11 19:20:45 ad Exp $"); #include <sun3/sun3/machdep.h> +CTASSERT(sizeof(struct frame) == 76 /* F_t */ + 84 /* F_u */); + #include "ksyms.h" /* Defined in locore.s */ |
