Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/arch/amd64/include Pull up revision 1.2 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/a08c34d4fd64
branches:  netbsd-2-0
changeset: 561454:a08c34d4fd64
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Jun 17 20:06:40 2004 +0000

description:
Pull up revision 1.2 (requested by fvdl in ticket #506):
When converting GDT length units from segment structures to bytes for the
amd64 port, I converted MINGDTSIZ wrongly; it was not page aligned, causing
gdt_grow to corrupt the GDT. Fix this, and remove the extraneous definitions
of the sizes from gdt.c.
>From OpenBSD.

diffstat:

 sys/arch/amd64/include/gdt.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 52334940de36 -r a08c34d4fd64 sys/arch/amd64/include/gdt.h
--- a/sys/arch/amd64/include/gdt.h      Thu Jun 17 12:43:37 2004 +0000
+++ b/sys/arch/amd64/include/gdt.h      Thu Jun 17 20:06:40 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdt.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $     */
+/*     $NetBSD: gdt.h,v 1.1.4.1 2004/06/17 20:06:40 tron Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -57,5 +57,5 @@
                 int);
 #endif
 
-#define MINGDTSIZ       2048
+#define MINGDTSIZ       PAGE_SIZE
 #define MAXGDTSIZ       65536



Home | Main Index | Thread Index | Old Index