lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABtop_ED5ASg-0O-6QE5LXeN_t8rwYWWgExM_1GCnstP7RZ-7g@mail.gmail.com>
Date:	Thu, 19 May 2016 18:14:54 +0800
From:	Martinez Kristofer <kristofer.s.martinez@...il.com>
To:	x00195127 <saberlily.xia@...ilicon.com>
Cc:	Catalin Marinas <catalin.marinas@....com>, will.deacon@....com,
	puck.chen@...ilicon.com, suzhuangluan@...ilicon.com,
	linaro-kernel@...ts.linaro.org, linux-kernel@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] arm64: cpuinfo: add AArch64 & elf platform for app compatibility

On Thu, May 19, 2016 at 10:44 AM, x00195127 <saberlily.xia@...ilicon.com> wrote:
> we find that some apps will read cpuinfo when start up,
> they need the string  as follows:
> "Processor       : AArch64 Processor rev 0 (aarch64)"
>
> Then thay could load the corresponding libs. But now
> arm64 platform's cpuinfo don't has this now, so
> we need add this.
>
> Signed-off-by: Qing Xia <saberlily.xia@...ilicon.com>
> ---
>  arch/arm64/kernel/cpuinfo.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
> index 3808470..c3527ad 100644
> --- a/arch/arm64/kernel/cpuinfo.c
> +++ b/arch/arm64/kernel/cpuinfo.c
> @@ -114,6 +114,9 @@ static int c_show(struct seq_file *m, void *v)
>                  * online processors, looking for lines beginning with
>                  * "processor".  Give glibc what it expects.
>                  */
> +               seq_printf(m, "Processor\t: AArch64 Processor rev %d (%s)\n",
> +                               read_cpuid_id() & 15, ELF_PLATFORM);

Nit: read_cpuid_id() & 0xf, ELF_PLATFORM);
What're those apps will need this string to startup?

M.K.

> +
>                 seq_printf(m, "processor\t: %d\n", i);
>
>                 seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
> --
> 1.8.3.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ