]> git.karo-electronics.de Git - linux-beck.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)
commitd5b35cffe3d3c2bc297b7c1fb997a6139de02e12
tree8d84d161bc69c92887099ca300f418e329eaf66d
parente2c37d908336dc27c8b405f063c2a163124947fa
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]