[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 2 Feb 2018 17:38:00 +0000
From: "Maciej W. Rozycki" <macro@...s.com>
To: Florian Fainelli <f.fainelli@...il.com>
CC: <linux-mips@...ux-mips.org>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Ralf Baechle <ralf@...ux-mips.org>,
"Kevin Cernekee" <cernekee@...il.com>,
James Hogan <jhogan@...nel.org>,
Paul Burton <paul.burton@...s.com>,
Matt Redfearn <matt.redfearn@...s.com>,
Huacai Chen <chenhc@...ote.com>,
Kate Stewart <kstewart@...uxfoundation.org>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
Marcin Nowakowski <marcin.nowakowski@...s.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Ingo Molnar <mingo@...nel.org>,
David Howells <dhowells@...hat.com>,
Kees Cook <keescook@...omium.org>,
Thomas Meyer <thomas@...3r.de>,
Bryan O'Donoghue <pure.logic@...us-software.ie>,
Robin Murphy <robin.murphy@....com>,
"Michal Hocko" <mhocko@...e.com>,
Lucas Stach <l.stach@...gutronix.de>,
"Vladimir Murzin" <vladimir.murzin@....com>,
Bart Van Assche <bart.vanassche@...disk.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RFC 3/6] MIPS: BMIPS: Avoid referencing CKSEG1
On Tue, 23 Jan 2018, Florian Fainelli wrote:
> bmips_smp_movevec() references the CKSEG1 constant, which is about to be
> updated in order to support processors that might enable eXtended
> KSEG0/1. In doing so, we will generate a reference to a function, which
> is obviously not permissible within assembly. Fortunately,
> bmips_smp_movevec() is only used on BMIPS4350 which does not support
> eXtended KSEG0/1.
Can you please avoid replacing the macro with a hardcoded magic number
though, so that it retains the high-level meaning?
Define another macro, say MIPS_ARCH_CKSEG1, and use it here instead, and
possibly elsewhere too. You could complement it with BMIPS_XKS01_CKSEG1
if necessary too (I haven't thoroughly looked through your patches).
Maciej
Powered by blists - more mailing lists