From: Ben Dooks <ben-linux@fluff.org>
To: linux-arm-kernel@lists.arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: linux-next: fix vector initialisation when !CONFIG_KGDB
Date: Wed, 18 Jun 2008 17:50:21 +0100 [thread overview]
Message-ID: <20080618165021.GJ10351@trinity.fluff.org> (raw)
[-- 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 --]
next reply other threads:[~2008-06-18 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-18 16:50 Ben Dooks [this message]
2008-06-19 1:28 ` linux-next: fix vector initialisation when !CONFIG_KGDB Jason Wessel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080618165021.GJ10351@trinity.fluff.org \
--to=ben-linux@fluff.org \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox