summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2009-02-15 17:06:30 +0000
committermikeb <mikeb@openbsd.org>2009-02-15 17:06:30 +0000
commit029cc5b974eb02907caac91f7cd7a29a18a13e98 (patch)
tree9771ab4636c2e9f47534d40b2c7490bb1b209b33
parentsync (diff)
downloadwireguard-openbsd-029cc5b974eb02907caac91f7cd7a29a18a13e98.tar.xz
wireguard-openbsd-029cc5b974eb02907caac91f7cd7a29a18a13e98.zip
Set the limit of the GDT table to its size - 1.
Reported by and diff from Remco <remco at d-compu.dyndns.org>, thanks! Checked with kettenis@. ok kettenis
-rw-r--r--sys/arch/amd64/amd64/locore.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S
index bd569f17cf4..89d9800b590 100644
--- a/sys/arch/amd64/amd64/locore.S
+++ b/sys/arch/amd64/amd64/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.30 2008/11/12 21:42:43 weingart Exp $ */
+/* $OpenBSD: locore.S,v 1.31 2009/02/15 17:06:30 mikeb Exp $ */
/* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */
/*
@@ -209,7 +209,7 @@ _C_LABEL(biosextmem): .long REALEXTMEM
.globl gdt64
gdt64:
- .word gdt64_end-gdt64_start
+ .word gdt64_end-gdt64_start-1
.quad _RELOC(gdt64_start)
.align 64