From owner-svn-src-all@freebsd.org Tue Nov 15 20:44:20 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73A9BC43163; Tue, 15 Nov 2016 20:44:20 +0000 (UTC) (envelope-from mizhka@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45B3F1CE3; Tue, 15 Nov 2016 20:44:20 +0000 (UTC) (envelope-from mizhka@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAFKiJlW049245; Tue, 15 Nov 2016 20:44:19 GMT (envelope-from mizhka@FreeBSD.org) Received: (from mizhka@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAFKiJgF049244; Tue, 15 Nov 2016 20:44:19 GMT (envelope-from mizhka@FreeBSD.org) Message-Id: <201611152044.uAFKiJgF049244@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mizhka set sender to mizhka@FreeBSD.org using -f From: Michael Zhilin Date: Tue, 15 Nov 2016 20:44:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308697 - head/sys/mips/mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 20:44:20 -0000 Author: mizhka Date: Tue Nov 15 20:44:19 2016 New Revision: 308697 URL: https://svnweb.freebsd.org/changeset/base/308697 Log: [MIPS] Fix Config3[ULRI] printing Bit identifier of printf %b is octal integer, but not decimal. ULRI bit is 13-th bit (starting with 0) according to MIPS Architecture Volume III v.6. In this case the bit identifier (starts with 1) should be \16. Reviewed by: gonzo Approved by: adrian(mentor) Differential Revision: https://reviews.freebsd.org/D8516 Modified: head/sys/mips/mips/cpu.c Modified: head/sys/mips/mips/cpu.c ============================================================================== --- head/sys/mips/mips/cpu.c Tue Nov 15 20:35:29 2016 (r308696) +++ head/sys/mips/mips/cpu.c Tue Nov 15 20:44:19 2016 (r308697) @@ -481,7 +481,7 @@ cpu_identify(void) /* Print Config3 if it contains any useful info */ if (cfg3 & ~(0x80000000)) - printf(" Config3=0x%b\n", cfg3, "\20\14ULRI\2SmartMIPS\1TraceLogic"); + printf(" Config3=0x%b\n", cfg3, "\20\16ULRI\2SmartMIPS\1TraceLogic"); #if defined(CPU_MIPS1004K) || defined (CPU_MIPS74K) || defined (CPU_MIPS24K) cfg7 = mips_rd_config7();