Re: [patch 08/16] Add support for X86_64 platforms to KGDB

2005-08-29 Thread Tom Rini
On Mon, Aug 29, 2005 at 08:46:15PM +0200, Andi Kleen wrote: > On Monday 29 August 2005 19:45, Tom Rini wrote: > > > > > Bob did this part (forgot to CC him, oops). But I believe it's needed > > for setting traps so much earlier. > > Ok looking again I guess he needed it for the GDT access in cpu

Re: [patch 08/16] Add support for X86_64 platforms to KGDB

2005-08-29 Thread Andi Kleen
On Monday 29 August 2005 19:45, Tom Rini wrote: > > Bob did this part (forgot to CC him, oops). But I believe it's needed > for setting traps so much earlier. Ok looking again I guess he needed it for the GDT access in cpu_init > > > + if (notify_die(DIE_PAGE_FAULT, "no context", regs, error_co

Re: [patch 08/16] Add support for X86_64 platforms to KGDB

2005-08-29 Thread Tom Rini
On Mon, Aug 29, 2005 at 07:13:47PM +0200, Andi Kleen wrote: > On Monday 29 August 2005 18:10, Tom Rini wrote: > > > +void __init early_setup_per_cpu_area(void) > > +{ > > + static char cpu0[PERCPU_ENOUGH_ROOM] > > + __attribute__ ((aligned (SMP_CACHE_BYTES))); > > + char *ptr = cpu0;

Re: [patch 08/16] Add support for X86_64 platforms to KGDB

2005-08-29 Thread Andi Kleen
On Monday 29 August 2005 18:10, Tom Rini wrote: > +void __init early_setup_per_cpu_area(void) > +{ > + static char cpu0[PERCPU_ENOUGH_ROOM] > + __attribute__ ((aligned (SMP_CACHE_BYTES))); > + char *ptr = cpu0; > + > + cpu_pda[0].data_offset = ptr - __per_cpu_start; > +

[patch 08/16] Add support for X86_64 platforms to KGDB

2005-08-29 Thread Tom Rini
This adds support for the x86_64 architecture. In addition to what was noted in the core-lite patch about stuff outside of new files, we add -g0 to compiling of syscalls.o as otherwise we run into problems when debugging modules, and like i386 annotate switch_to(). --- linux-2.6.13-trini/arch/