Xtensa uses two instructions to perform atomic compare-and-set instruction: first the comparison register, then the actual instruction to do compare-and-set. There is a potential that context switching is performed before these two instructions. A restored context may have the wrong value in the comparison register. So we need to save and restore the comparison register during context switching. Fixes #21800 Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
|---|---|---|
| .. | ||
| kernel_arch_data.h | ||
| kernel_arch_func.h | ||
| offsets_short_arch.h | ||
| xtensa-asm2-context.h | ||
| xtensa-asm2-s.h | ||
| xtensa-asm2.h | ||