Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1cb4ed92 authored by Scott Wood's avatar Scott Wood
Browse files

powerpc/e6500: hw tablewalk: fix recursive tlb lock on cpu 0



Commit 82d86de2 "TLB lock recursive"
introduced a bug whereby cpu 0 uses the same value for "lock held" as
is used to indicate that the lock is free.  This means that cpu 1 can
acquire the lock whenever it wants, regardless of whether cpu 0 has it
locked, which in turn means we can get duplicate TLB entries.

Add one to the CPU value to ensure we do not use zero as a "lock held"
value.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Reported-by: default avatarEd Swarthout <ed.swarthout@freescale.com>
parent bbd08c72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment