svn commit: r361500 - head/sys/amd64/amd64
Roger Pau Monné
royger at FreeBSD.org
Tue May 26 10:24:07 UTC 2020
Author: royger
Date: Tue May 26 10:24:06 2020
New Revision: 361500
URL: https://svnweb.freebsd.org/changeset/base/361500
Log:
xen-locore: fix size in GDT descriptor
There was an off-by-one in the GDT descriptor size field used by the
early Xen boot code. The GDT descriptor size should be the size of the
GDT minus one. No functional change expected as a result of this
change.
Sponsored by: Citrix Systems R&D
Modified:
head/sys/amd64/amd64/xen-locore.S
Modified: head/sys/amd64/amd64/xen-locore.S
==============================================================================
--- head/sys/amd64/amd64/xen-locore.S Tue May 26 08:25:24 2020 (r361499)
+++ head/sys/amd64/amd64/xen-locore.S Tue May 26 10:24:06 2020 (r361500)
@@ -207,7 +207,7 @@ PT2:
/* 64bit GDT */
gdtdesc:
- .word gdtend - gdt
+ .word gdtend - gdt - 1
.long VTOP(gdt) # low
.long 0 # high
gdt:
@@ -221,7 +221,7 @@ gdtend:
/* 32bit GDT */
gdtdesc32:
- .word gdt32end - gdt32
+ .word gdt32end - gdt32 - 1
.long VTOP(gdt32)
.long 0
gdt32:
More information about the svn-src-head
mailing list