]> git.baikalelectronics.ru Git - kernel.git/commit
ppc476: Enable a linker work around for IBM errata #46
authorAlistair Popple <alistair@popple.id.au>
Mon, 24 Feb 2014 07:00:56 +0000 (18:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Apr 2014 22:26:34 +0000 (08:26 +1000)
commit042ae6ad68a504e5c465c874b8b1dc243f81ff91
tree8d84d161bc69c92887099ca300f418e329eaf66d
parentd57b0e33f4304ff6e8a716ba1f639a556c9c5211
ppc476: Enable a linker work around for IBM errata #46

This patch adds an option to enable a work around for an icache bug on
476 that can cause execution of stale instructions when falling
through pages (IBM errata #46). It requires a recent version of
binutils which supports the --ppc476-workaround option.

The work around enables the appropriate linker options and ensures
that all module output sections are aligned to 4K page boundaries. The
work around is only required when building modules.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Makefile
arch/powerpc/platforms/44x/Kconfig
arch/powerpc/platforms/44x/ppc476_modules.lds [new file with mode: 0644]