Date: Mon, 16 Sep 2024 08:15:08 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 687b896f8ea5 - main - amd64 la57_trampoline: lgdt descriptor is always 10 bytes in long mode Message-ID: <202409160815.48G8F8lp027266@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=687b896f8ea58e67c3a0bfbd3af3041733e57dcf commit 687b896f8ea58e67c3a0bfbd3af3041733e57dcf Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-09-12 03:33:48 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-09-16 08:11:54 +0000 amd64 la57_trampoline: lgdt descriptor is always 10 bytes in long mode Extend its storage to be compliant. This is currently nop due to padding and nul gdt descriptor right after the lgdt descriptor. Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/locore.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index d05f38dbba05..3df3dd722f45 100644 --- a/sys/amd64/amd64/locore.S +++ b/sys/amd64/amd64/locore.S @@ -151,7 +151,7 @@ l2: movq %r11,%rsp .p2align 4,0 ENTRY(la57_trampoline_gdt_desc) .word la57_trampoline_end - la57_trampoline_gdt - .long 0 /* filled by pmap_bootstrap_la57 */ + .long 0, 0 /* filled by pmap_bootstrap_la57 */ .p2align 4,0 ENTRY(la57_trampoline_gdt) .long 0x00000000 /* null desc */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409160815.48G8F8lp027266>