Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include arm/efi.h: Assert size of struct efi_sy...



details:   https://anonhg.NetBSD.org/src/rev/fac305fe596c
branches:  trunk
changeset: 369479:fac305fe596c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Aug 20 10:54:34 2022 +0000

description:
arm/efi.h: Assert size of struct efi_systbl.

diffstat:

 sys/arch/arm/include/efi.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 33c7b632c7e6 -r fac305fe596c sys/arch/arm/include/efi.h
--- a/sys/arch/arm/include/efi.h        Sat Aug 20 10:54:25 2022 +0000
+++ b/sys/arch/arm/include/efi.h        Sat Aug 20 10:54:34 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efi.h,v 1.4 2022/08/20 09:43:27 riastradh Exp $        */
+/*     $NetBSD: efi.h,v 1.5 2022/08/20 10:54:34 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2004 Marcel Moolenaar
@@ -175,5 +175,10 @@
        u_long          st_entries;
        struct efi_cfgtbl *st_cfgtbl;
 };
+#ifdef _LP64
+__CTASSERT(sizeof(struct efi_systbl) == 120);
+#else
+__CTASSERT(sizeof(struct efi_systbl) == 72);
+#endif
 
 #endif /* _ARM_EFI_H_ */



Home | Main Index | Thread Index | Old Index