]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: reserve exception vector space ONLY ONCE
authorHuang Pei <huangpei@loongson.cn>
Tue, 23 Jan 2024 01:47:57 +0000 (09:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:50 +0000 (13:34 +0100)
commitf778a45784d34355b481b16b8348374fa2e585eb
tree4214f158029c9891785fedaa16be011bf2fd620a
parent64783eaa37b74ac08c1f44e14bfaaec24c8dcb25
MIPS: reserve exception vector space ONLY ONCE

[ Upstream commit abcabb9e30a1f9a69c76776f8abffc31c377b542 ]

"cpu_probe" is called both by BP and APs, but reserving exception vector
(like 0x0-0x1000) called by "cpu_probe" need once and calling on APs is
too late since memblock is unavailable at that time.

So, reserve exception vector ONLY by BP.

Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/kernel/traps.c