From 9dbcea5e8ef372b98c20b8633db18cc7c841d7b3 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Sun, 15 Feb 2009 17:06:31 +0000 Subject: Set the limit of the GDT table to its size - 1. Reported by and diff from Remco , thanks! Checked with kettenis@. ok kettenis --- sys/arch/amd64/amd64/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 -- cgit v1.2.3