]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: CFE: Add cfe_die()
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 15 Jul 2022 21:37:46 +0000 (14:37 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 17 Jul 2022 12:52:47 +0000 (14:52 +0200)
commitae5fb6c7dc9f6c7825585e12ce3fab23d818061a
tree3a6a1899772a3e64680afa6e9f88f91a1c540b91
parentcd00c4e8e5afabcd0b92df4cd203c278384c7275
MIPS: CFE: Add cfe_die()

Add a cfe_die() implementation which is useful when the kernel does an
early panic and no console is registered. This allows us to print
useful diagnostics such as an invalid DTB having been
configured/selected.

Since the BMIPS_GENERIC kernel can be built with support for multiple
processors, we need to do a runtime determination of the type of CPU
that we are executing on to perform the appropriate XKS01 disabling.

Since cfe_init() + cfe_die() could be conceivably called at very early
stages of the kernel boot, before cpu_probe(), we do not rely on the
structure(s) populated by cpu_probe().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/fw/cfe/cfe_api.c
arch/mips/include/asm/fw/cfe/cfe_api.h