lkml.org 
[lkml]   [2004]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] kgdb-x86_64-support.patch for 2.6.2-rc1-mm3
From
Date
On Mon, 2004-01-26 at 22:28, Andrew Morton wrote:
> Jim Houston <jim.houston@comcast.net> wrote:
> >
> > The attached patch updates my kgdb-x86_64-support.patch to work
> > with linux-2.6.2-rc1-mm3.
>
> Thanks. Why does it relocate the call to trap_init() in start_kernel()?

Hi Andrew,

Moving trap_init() before parse_args() makes the "gdb" command line
option work.

On the i386 George has a few lines of code in breakpoint() which do
enough setup to allow a break point trap to enter kgdb early in the
boot. I played with similar code on x86_64, but it didn't work.
Handling a break point trap requires some of the initialization
done in cpu_init(). I suspect the difference is the per-cpu-data
referenced using %gs.

Jim Houston - Concurrent Computer Corp.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:2.568 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site