commit | 933a8f9d12d18d8b2b59dae6fd8fa01869c745e2 | [log] [tgz] |
---|---|---|
author | Jaxson Han <jaxson.han@arm.com> | Wed Apr 27 20:09:07 2022 +0800 |
committer | Stephanos Ioannidis <root@stephanos.io> | Tue May 17 11:45:16 2022 +0900 |
tree | 3efc1bf05335531430d94c851554fa56c98fe341 | |
parent | 2f6087ba6718073a99ebbda8e9f99b6a1f276fe5 [diff] |
arch: arm64: Fix coherence issue of SMP boot code The current SMP boot code doesn't consider that the cores can boot at the same time. Possibly, more than one core can boot into primary core boot sequence. Fix it by using the atomic operation to make sure only one core act as the primary core. Correspondingly, sgi_raise_ipi should transfer CPU id to mpidr. Signed-off-by: Jaxson Han <jaxson.han@arm.com>