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();
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to