Date: Tue, 26 May 2020 10:24:07 +0000 (UTC) From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361500 - head/sys/amd64/amd64 Message-ID: <202005261024.04QAO7DL062920@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005261024.04QAO7DL062920>