From: Joachim Dietrich <jo.dietrich@xxxxxx> There are no separate supervisor and user stack pointers on older Coldfire CPUs such as the mcf5329. We, therefore, must enable the use of software copies which is done by selecting CONFIG_COLDFIRE_SW_A7, else the first user process has a wrong stack pointer. Signed-off-by: Joachim Dietrich <jo.dietrich@xxxxxx> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> --- I (Geert) am not that super familiar with the CONFIG_COLDFIRE_SW_A7 handling. According to Section 3.2.3 ("Supervisor/User Stack Pointers (A7 and OTHER_A7)") of MCF5329RM.pdf[1], mcf5329 does have separate stack pointers, but they're not USP and SSP, like on classic m68k and newer Coldfire parts. Hence mcf5329 differs from e.g. mcf5206[2], which has a single unified stack pointer, which is what CONFIG_COLDFIRE_SW_A7 is designed for. I don't know if this applies to all mcf532x variants. It's quite possible CONFIG_COLDFIRE_SW_A7 is the correct solution for mcf5329, or perhaps it needs some special handling for A7 vs. OTHER_A7? Thanks! [1] https://www.nxp.com/docs/en/reference-manual/MCF5329RM.pdf [2] https://www.nxp.com/docs/en/data-sheet/MCF5206UM.pdf --- arch/m68k/Kconfig.cpu | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu index 60ac1cd8b96fb868..e41e74cd1125b8de 100644 --- a/arch/m68k/Kconfig.cpu +++ b/arch/m68k/Kconfig.cpu @@ -239,6 +239,7 @@ config M532x depends on !MMU select M53xx select HAVE_CACHE_CB + select COLDFIRE_SW_A7 help Freescale (Motorola) ColdFire 532x processor support. -- 2.17.1