Re: [ORLinux] [PATCH] OpenRISC: Handle r0 with care

From: Stefan Kristiansson
Date: Tue Mar 06 2012 - 00:52:31 EST


On Mon, Mar 05, 2012 at 10:07:07PM +0100, Richard Weinberger wrote:
> @@ -185,8 +186,8 @@ handler: ;\
> /* ---[ 0x100: RESET exception ]----------------------------------------- */
>
> EXCEPTION_ENTRY(_tng_kernel_start)
> + l.andi r0,r0,0
> l.jal _start
> - l.andi r0,r0,0
>
> /* ---[ 0x200: BUS exception ]------------------------------------------- */
>

The OpenRISC architecture features delay slots, so you probably don't want
to do that.

Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/