[Patch v2 1/2] powerpc: Send SIGBUS on unaligned copy and paste

Segher Boessenkool segher at kernel.crashing.org
Fri Jun 17 14:04:12 AEST 2016


On Fri, Jun 17, 2016 at 09:33:45AM +1000, Chris Smart wrote:
> +#define PPC_INST_COPY			0x7c00060c
> +#define PPC_INST_COPY_FIRST		0x7c20060c

> +#define PPC_INST_PASTE			0x7c00070c
> +#define PPC_INST_PASTE_LAST		0x7c20070d

That's not quite right I think.

copy is       7c00060c mask fc2007fe (or ffe007fe)
copy_first is 7c20060c mask fc2007fe
paste is      7c00070c mask fc2007fe
paste_last is 7c20070c mask fc2007fe

(this includes record form for paste; the low bit).


Segher


More information about the Linuxppc-dev mailing list