Source-Changes-HG archive

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

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



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

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

diffstat:

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

diffs (21 lines):

diff -r 1c506d01b383 -r 541962be3671 sys/arch/x86/include/efi.h
--- a/sys/arch/x86/include/efi.h        Sat Aug 20 10:54:44 2022 +0000
+++ b/sys/arch/x86/include/efi.h        Sat Aug 20 10:54:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efi.h,v 1.13 2022/08/20 09:43:27 riastradh Exp $       */
+/*     $NetBSD: efi.h,v 1.14 2022/08/20 10:54:53 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2004 Marcel Moolenaar
@@ -306,6 +306,11 @@
        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
 
 #if defined(__amd64__)
 struct efi_cfgtbl32 {



Home | Main Index | Thread Index | Old Index