Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 17:40:31 -0400 (EDT)
From:      ak03@gte.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/26858: small typo in i386/i386/support.s
Message-ID:  <200104252140.f3PLeVU04237@h132-197-97-45.gte.com>

next in thread | raw e-mail | index | archive | help

>Number:         26858
>Category:       kern
>Synopsis:       typo in support.s prevent I386_CPU kernel compiles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 25 14:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104252140.f3PLeVU04237>