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/amd64 Pull up revision 1.5 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/46712220f089
branches:  netbsd-2-0
changeset: 561455:46712220f089
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Jun 17 20:07:02 2004 +0000

description:
Pull up revision 1.5 (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/amd64/gdt.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r a08c34d4fd64 -r 46712220f089 sys/arch/amd64/amd64/gdt.c
--- a/sys/arch/amd64/amd64/gdt.c        Thu Jun 17 20:06:40 2004 +0000
+++ b/sys/arch/amd64/amd64/gdt.c        Thu Jun 17 20:07:02 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdt.c,v 1.4 2004/02/13 11:36:20 wiz Exp $      */
+/*     $NetBSD: gdt.c,v 1.4.2.1 2004/06/17 20:07:02 tron Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.4 2004/02/13 11:36:20 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.4.2.1 2004/06/17 20:07:02 tron Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -58,9 +58,6 @@
 
 #include <machine/gdt.h>
 
-#define        MINGDTSIZ       2048
-#define        MAXGDTSIZ       65536
-
 int gdt_size;          /* size of GDT in bytes */
 int gdt_dyncount;      /* number of dyn. allocated GDT entries in use */
 int gdt_dynavail;



Home | Main Index | Thread Index | Old Index