Author: kib
Date: Tue Nov 19 15:32:15 2019
New Revision: 354856
URL: https://svnweb.freebsd.org/changeset/base/354856

Log:
  MFC r354644:
  amd64: assert that size of the software prototype table for gdt is equal
  to the size of hardware gdt.

Modified:
  stable/12/sys/amd64/amd64/machdep.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/12/sys/amd64/amd64/machdep.c Tue Nov 19 14:53:13 2019        
(r354855)
+++ stable/12/sys/amd64/amd64/machdep.c Tue Nov 19 15:32:15 2019        
(r354856)
@@ -812,6 +812,7 @@ struct soft_segment_descriptor gdt_segs[] = {
        .ssd_def32 = 0,
        .ssd_gran = 0           },
 };
+_Static_assert(nitems(gdt_segs) == NGDT, "Stale NGDT");
 
 void
 setidt(int idx, inthand_t *func, int typ, int dpl, int ist)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to