From ak03@gte.com  Wed Apr 25 14:40:33 2001
Return-Path: <ak03@gte.com>
Received: from h132-197-97-45.gte.com (h132-197-97-45.gte.com [132.197.97.45])
	by hub.freebsd.org (Postfix) with ESMTP id 5DF8737B422
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Apr 2001 14:40:32 -0700 (PDT)
	(envelope-from ak03@gte.com)
Received: (from ak03@localhost)
	by h132-197-97-45.gte.com (8.11.3/8.11.3) id f3PLeVU04237;
	Wed, 25 Apr 2001 17:40:31 -0400 (EDT)
	(envelope-from ak03)
Message-Id: <200104252140.f3PLeVU04237@h132-197-97-45.gte.com>
Date: Wed, 25 Apr 2001 17:40:31 -0400 (EDT)
From: ak03@gte.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: small typo in i386/i386/support.s
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26858
>Category:       kern
>Synopsis:       typo in support.s prevent I386_CPU kernel compiles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jake
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 25 14:50:01 PDT 2001
>Closed-Date:    Wed Apr 25 19:11:51 PDT 2001
>Last-Modified:  Thu Apr 26 02:30:14 PDT 2001
>Originator:     Alexander N. Kabaev
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Verizon Laboratories Inc.
>Environment:
System: FreeBSD kanpc.gte.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Mon Apr 23 14:50:40 EDT 2001 root@kanpc.gte.com:/usr/src/sys/compile/KANPC i386


>Description:
	There is apparently a typo in support.s. It tries to access 
	_PTmap(edx) exactly in one place in the file under I386_CPU
	define, while all other places use PTmap(edx) (no leading
	underscore).

>How-To-Repeat:
	Define I386_CPU and attempt to compile the kernel on -CURRENT
>Fix:

Index: support.s
===================================================================
RCS file: /usr/ncvs/src/sys/i386/i386/support.s,v
retrieving revision 1.81
diff -u -r1.81 support.s
--- support.s	2001/03/24 08:27:57	1.81
+++ support.s	2001/04/25 20:19:37
@@ -1301,7 +1301,7 @@
 	shrl	$IDXSHIFT,%edx
 	andb	$0xfc,%dl
 
-	leal	_PTmap(%edx),%ecx
+	leal	PTmap(%edx),%ecx
 	shrl	$IDXSHIFT,%ecx
 	andb	$0xfc,%cl
 	testb	$PG_V,PTmap(%ecx)		/* PTE page must be valid */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Wed Apr 25 19:11:51 PDT 2001 
State-Changed-Why:  
Duplicate of 26830. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26858 
Responsible-Changed-From-To: freebsd-bugs->jake 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Thu Apr 26 02:29:37 PDT 2001 
Responsible-Changed-Why:  
Jake removed most of the underscores in this file - maybe this is one 
he missed? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26858 
>Unformatted:
