Blackfin arch: add support for working around anomaly 05000312
authorMike Frysinger <michael.frysinger@analog.com>
Wed, 21 Nov 2007 08:08:58 +0000 (16:08 +0800)
committerBryan Wu <bryan.wu@analog.com>
Wed, 21 Nov 2007 08:08:58 +0000 (16:08 +0800)
commit9e83b98a79d25136282a1757f879c40ee929a28b
tree1ec7588320b7e95f05eab8b2f9a06c07f48034bc
parentb5f87aa41db4d5cd64ca77f10b33fdfba61a47d7
Blackfin arch: add support for working around anomaly 05000312

Anomaly 05000312 - Errors When SSYNC, CSYNC, or Loads to LT, LB and LC Registers Are Interrupted:

DESCRIPTION:
When instruction cache is enabled, erroneous behavior may occur when any of the following instructions are interrupted:

. CSYNC
• SSYNC
• LCx =
• LTx = (only when LCx is non-zero)
• LBx = (only when LCx is non-zero)

When this problem occurs, a variety of incorrect things could happen, including an illegal instruction exception. Additional errors could
show up as an exception, a hardware error, or an instruction that is valid but different than the one that was expected.

WORKAROUND:
Place a cli before all SSYNC, CSYNC, "LCx =", "LTx =", and "LBx =" instructions to disable interrupts, and place an sti after each of these
instructions to re-enable interrupts. When these instructions are executed in code that is already non-interruptible, the problem will not
occur.

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
include/asm-blackfin/delay.h