All of lore.kernel.org
 help / color / mirror / Atom feed
From: ben.dooks@codethink.co.uk (Ben Dooks)
To: linux-arm-kernel@lists.infradead.org
Subject: [PULL REQUEST] big-endian updates for ARM
Date: Tue, 03 Sep 2013 12:25:08 +0100	[thread overview]
Message-ID: <5225C714.3090504@codethink.co.uk> (raw)
In-Reply-To: <20130903101332.GA26613@localhost.localdomain>

On 03/09/13 11:13, Dave Martin wrote:
> On Mon, Sep 02, 2013 at 12:24:23PM +0100, Ben Dooks wrote:
>> With the last ack added, the following series is ready to be pulled.
>>
>> The following changes since commit fa8218def1b1a16f0a410e2c1c767b4738cc81fa:
>>
>>    Merge tag 'regmap-v3.11-rc7' of
>> git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
>> (2013-08-27 10:10:30 -0700)
>>
>> are available in the git repository at:
>>
>>
>>    git://git.baserock.org/delta/linux.git baserock/311-rc7/be/core-v3
>>
>> for you to fetch changes up to 5217543fe4605fa91065acf5141d88949cd3da1e:
>>
>>    ARM: signal: sigreturn_codes should be endian neutral to work in BE8
>> (2013-09-02 11:53:53 +0100)
>>
>> ----------------------------------------------------------------
>> Ben Dooks (19):
>>        ARM: fix ARCH_IXP4xx usage of ARCH_SUPPORTS_BIG_ENDIAN
>>        ARM: asm: Add ARM_BE8() assembly helper
>>        ARM: fixup_pv_table bug when CPU_ENDIAN_BE8
>>        ARM: set BE8 if LE in head code
>>        ARM: pl01x debug code endian fix
>>        ARM: twd: data endian fix
>>        ARM: smp_scu: data endian fixes
>>        highbank: enable big-endian
>>        fix highbank
>>        mvebu: support running big-endian
>>        vexpress: add big endian support
>>        ARM: alignment: correctly decode instructions in BE8 mode.
>>        ARM: traps: use<asm/opcodes.h>  to get correct instruction order
>
> As I repoerted in [1], this is patch broken for CONFIG_THUMB2_KERNEL due
> to a typo:
>
> arch/arm/kernel/traps.c: In function 'do_undefinstr':
> arch/arm/kernel/traps.c:411:5: error: 'instr2' undeclared (first use in this function)
>       instr2 = __mem_to_opcode_thumb16(((u16 *)pc)[1]);
>       ^
> arch/arm/kernel/traps.c:411:5: note: each undeclared identifier is reported only once for each function it appears in
> arch/arm/kernel/traps.c:410:9: warning: unused variable 'inst2' [-Wunused-variable]
>       u16 inst2;
>           ^
> make[1]: *** [arch/arm/kernel/traps.o] Error 1
>
>
> The following should be enough to fix it:
>
> diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
> index da070db..d3806aa 100644
> --- a/arch/arm/kernel/traps.c
> +++ b/arch/arm/kernel/traps.c
> @@ -407,7 +407,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
>   		if (thumb_mode(regs)) {
>   			instr = __mem_to_opcode_thumb16(((u16 *)pc)[0]);
>   			if (is_wide_instruction(instr)) {
> -				u16 inst2;
> +				u16 instr2;
>   				instr2 = __mem_to_opcode_thumb16(((u16 *)pc)[1]);
>   				instr = __opcode_thumb32_compose(instr, instr2);
>   			}


Sorry, I thought that had been fixed, thanks for reminding me.

I have fixed it and now on:

	git://git.baserock.org/delta/linux baserock/311-rc7/be/core-v4

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

       reply	other threads:[~2013-09-03 11:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130903101332.GA26613@localhost.localdomain>
2013-09-03 11:25 ` Ben Dooks [this message]
2013-09-03 11:45   ` [PULL REQUEST] big-endian updates for ARM Thomas Petazzoni
2013-09-03 12:51     ` Ben Dooks
2013-09-03 12:55       ` Thomas Petazzoni
2013-09-03 15:21         ` Ben Dooks
2013-09-03 15:29           ` Thomas Petazzoni
2013-09-02 11:24 Ben Dooks
2013-09-02 11:27 ` Thomas Petazzoni
2013-09-02 11:32   ` Ben Dooks
2013-09-02 11:51 ` Thomas Petazzoni
2013-09-02 17:22   ` Jason Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5225C714.3090504@codethink.co.uk \
    --to=ben.dooks@codethink.co.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.