amd64: assert that size of the software prototype table for gdt is equal
to the size of hardware gdt. Reviewed by: jhb, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D22302
This commit is contained in:
parent
a8fe77d877
commit
de6f295446
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354644
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user