summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2009-02-15 17:06:31 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2009-02-15 17:06:31 +0000
commit9dbcea5e8ef372b98c20b8633db18cc7c841d7b3 (patch)
tree5de29781d598a35d0b57d4d859bbd5a7c0073fdc /sys/arch/amd64
parent329b95c7df76b7f002c79f727f2b7b7009e878b4 (diff)
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
Diffstat (limited to 'sys/arch/amd64')
-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