srikanth krishnakar wrote:
> Hi all,
>
> Target : PowerPC, Virtex-440 Generic
> Serial port : Xilinx 16550 Uart ( depends on OF_PLATFORM)
>
> Further investigation of KGDBOC on PowerPC shows that kgdboc hangs at :
>
> In file : arch/powerpc/include/asm/kgdb.h
>
> *static inline void* arch_kgdb_breakpoint(*void*)
> {
>         *asm*(*".long 0x7d821008"*); /* *twge r2, r2 **/     * << ----
> KGDBOC Hangs here* * << ---*
>
>
> -----------------------------------------
> Debug Log:
>
> [email protected]:~# echo g >
> /proc/sysrq-trigger
> SysRq :
> GDB
>
> 1------------------------>sysrq_handle_gdb
>
> Entering KGDB
> 1-1----------------------->kgdb_breakpoint
> 1-2----------------------->kgdb_breakpoint
> 1-3----------------------->kgdb_breakpoint
> 1-1----------------------->arch_kgdb_breakpoint
>
> ---------------------------------------------
>
>
> Any comments or suggestions ????
>   

I had used the 2.6.30-rc3 kernel with the PowerPC 604 system I have and
it was working fine, but the 4xx archs are a bit different.

What happens next after you execute the inline assembly is that an
exception occurs, and that is the point that the kgdb entry will
actually execute.  IE:

arch/powerpc/kernel/traps.c

program_check_exception()

>From there kgdb should be entered and the I/O driver gets activated. 
You could put another printk in kgdb_handle_exception() in kernel/kgdb.c
to make sure it actually gets there.

Generally when the system hangs hard on an initial entry to kgdb it
means there is a problem with the I/O polling driver or there is
something else eating the kgdb exception and the kgdb exception handler
was never fired in the first place.

Jason.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to