aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-11-12 15:47:46 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-11-12 15:47:46 +0000
commitde6f295446472f7ca24f8ba9c5c6b41d42f05ac6 (patch)
tree2092401ed83e028138c2e3e0f1b3a07b27468bfa
parenta8fe77d877af46bb07e639b2d790aa10fe8c6835 (diff)
Notes
-rw-r--r--sys/amd64/amd64/machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index c5d941aeca5b..0d5a1c3334d9 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -794,6 +794,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)