Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 20:44:19 +0000 (UTC)
From:      Michael Zhilin <mizhka@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308697 - head/sys/mips/mips
Message-ID:  <201611152044.uAFKiJgF049244@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



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