* linux-next: fix vector initialisation when !CONFIG_KGDB
@ 2008-06-18 16:50 Ben Dooks
2008-06-19 1:28 ` Jason Wessel
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2008-06-18 16:50 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
It seems in the changes for adding CONFIG_KGDB that the ARM
trap initialisation has been turned off if the configuration
is not enabled. If CONFIG_KGDB is not set, the system locks
up as soon as the kernel turns the IRQs on for the first
time in init/main.c.
The fix is to remove the dependency on calling early_trap_init()
on CONFIG_KGDB, so that the vectors are initialised before
the init sequence enables the IRQs.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
--- linux-2.6.26-rc6-q1.orig/arch/arm/kernel/setup.c 2008-06-18 15:17:31.000000000 +0100
+++ linux-2.6.26-rc6-q1/arch/arm/kernel/setup.c 2008-06-18 15:17:45.000000000 +0100
@@ -855,9 +855,7 @@ void __init setup_arch(char **cmdline_p)
#endif
#endif
-#if defined(CONFIG_KGDB)
early_trap_init();
-#endif
}
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: linux-next: fix vector initialisation when !CONFIG_KGDB
2008-06-18 16:50 linux-next: fix vector initialisation when !CONFIG_KGDB Ben Dooks
@ 2008-06-19 1:28 ` Jason Wessel
0 siblings, 0 replies; 2+ messages in thread
From: Jason Wessel @ 2008-06-19 1:28 UTC (permalink / raw)
To: Ben Dooks; +Cc: linux-arm-kernel, linux-kernel
Ben Dooks wrote:
> It seems in the changes for adding CONFIG_KGDB that the ARM
> trap initialisation has been turned off if the configuration
> is not enabled. If CONFIG_KGDB is not set, the system locks
> up as soon as the kernel turns the IRQs on for the first
> time in init/main.c.
>
> The fix is to remove the dependency on calling early_trap_init()
> on CONFIG_KGDB, so that the vectors are initialised before
> the init sequence enables the IRQs.
>
> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
>
> --- linux-2.6.26-rc6-q1.orig/arch/arm/kernel/setup.c 2008-06-18 15:17:31.000000000 +0100
> +++ linux-2.6.26-rc6-q1/arch/arm/kernel/setup.c 2008-06-18 15:17:45.000000000 +0100
> @@ -855,9 +855,7 @@ void __init setup_arch(char **cmdline_p)
> #endif
> #endif
>
> -#if defined(CONFIG_KGDB)
> early_trap_init();
> -#endif
> }
>
>
That is absolutely correct. Thanks for catching this.
I folded this into the general ARM kgdb patch as there is no sense in
generating a patch bisecting failure. The change is in the kgdb-next
branch which feeds into the linux-next, which means it should show up in
the next day or so.
Thanks,
Jason.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-19 1:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 16:50 linux-next: fix vector initialisation when !CONFIG_KGDB Ben Dooks
2008-06-19 1:28 ` Jason Wessel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox