Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2019 15:32:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r354856 - stable/12/sys/amd64/amd64
Message-ID:  <201911191532.xAJFWFru096735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911191532.xAJFWFru096735>