From owner-freebsd-arm@freebsd.org Wed Feb 8 13:12:01 2017 Return-Path: Delivered-To: freebsd-arm@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 18D07CD62AE for ; Wed, 8 Feb 2017 13:12:01 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D56E0F2B for ; Wed, 8 Feb 2017 13:12:00 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cbS2P-00017m-6N for freebsd-arm@freebsd.org; Wed, 08 Feb 2017 14:11:57 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Subject: Fwd: Re: svn commit: r313343 - head/sys/arm/arm References: <201702061458.v16EwOjU015633@repo.freebsd.org> <27DC1078-9C59-4B6C-A9CF-9E6D246F7366@FreeBSD.org> Date: Wed, 08 Feb 2017 14:11:56 +0100 To: "FreeBSD ARM" MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Ronald Klop" Message-ID: In-Reply-To: <27DC1078-9C59-4B6C-A9CF-9E6D246F7366@FreeBSD.org> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 27b922e39ba943ef41a3b4c3f0284049 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 13:12:01 -0000 Hello, I'm not a commiter. so what do other think about this on 11-CURRENT? --- sys/arm/arm/identcpu.c (revision 313193) +++ sys/arm/arm/identcpu.c (working copy) @@ -386,8 +386,8 @@ void identify_arm_cpu(void) { - u_int cpuid, reg, size, sets, ways; - u_int8_t type, linesize, ctrl; + u_int cpuid, reg, size, sets, ways, ctrl; + u_int8_t type, linesize; int i; ctrl =3D cpu_get_control(); I'm currently compiling this and will try to install in a couple of hour= s = (or days :-) ) Regards, Ronald. ------- Forwarded message ------- From: "Stanislav Galabov" To: "Ronald Klop" Cc: "Stanislav Galabov" , = src-committers@freebsd.org, svn-src-all@freebsd.org, = svn-src-head@freebsd.org Subject: Re: svn commit: r313343 - head/sys/arm/arm Date: Wed, 08 Feb 2017 14:01:46 +0100 Hi, I hadn=E2=80=99t looked at 11-CURRENT to be honest, but looking at it - = yes, it seems is applicable there too. Unfortunately I am not certain I=E2=80=99ll have time to MFC this, so if= anyone wants to/has the time - please be my guest. Best wishes, Stanislav > On Feb 8, 2017, at 14:58, Ronald Klop wrote: > > Hello, > > Is this applicable to 11-CURRENT also? > > That version (sys/arm/arm/identcpu.c) has: > void > identify_arm_cpu(void) > { > u_int cpuid, reg, size, sets, ways; > u_int8_t type, linesize, ctrl; > int i; > > Regards, > Ronald. > > > On Mon, 06 Feb 2017 15:58:24 +0100, Stanislav Galabov = > wrote: > >> Author: sgalabov >> Date: Mon Feb 6 14:58:24 2017 >> New Revision: 313343 >> URL: https://svnweb.freebsd.org/changeset/base/313343 >> >> Log: >> sys/arm/arm/identcpu-v4.c: fix identify_arm_cpu() >> identify_arm_cpu() in sys/arm/arm/identcpu-v4.c incorrectly uses a >> u_int8_t variable to store the result of cpu_get_control(). >> It should really use a u_int variable, the same way as done for = >> cpu_ident() >> in the same function, as both cpuid and control registers are 32-bit= .. >> This issue causes users of identcpu-v4 to incorrectly report things = = >> such as >> icache status (bit 12 in cpu control register) and basically anythin= g >> defined in bits above bit 7 :-) >> Reviewed by: manu >> Sponsored by: Smartcom - Bulgaria AD >> Differential Revision: https://reviews.freebsd.org/D9460 >> >> Modified: >> head/sys/arm/arm/identcpu-v4.c >> >> Modified: head/sys/arm/arm/identcpu-v4.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D >> --- head/sys/arm/arm/identcpu-v4.c Mon Feb 6 14:41:34 2017 (r313342)= >> +++ head/sys/arm/arm/identcpu-v4.c Mon Feb 6 14:58:24 2017 (r313343)= >> @@ -294,8 +294,7 @@ u_int cpu_pfr(int num) >> void >> identify_arm_cpu(void) >> { >> - u_int cpuid; >> - u_int8_t ctrl; >> + u_int cpuid, ctrl; >> int i; >> ctrl =3D cpu_get_control(); >> _______________________________________________ >> svn-src-all@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/svn-src-all >> To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org= "