[PATCH] powerpc: fix PPC_PTRACE_SETHWDEBUG on PPC_BOOK3S

2010-11-27 Thread Andreas Schwab
Properly set the DABR_TRANSLATION/DABR_DATA_READ/DABR_DATA_READ bits in the dabr when setting the debug register via PPC_PTRACE_SETHWDEBUG. Also don't reject trigger type of PPC_BREAKPOINT_TRIGGER_READ. Signed-off-by: Andreas Schwab --- arch/powerpc/kernel/ptrace.c | 22 --

PHY/FEC Network adapter failed to initialize on MPC52xx Board

2010-11-27 Thread Peter
Hi all I got completely stuck with a network adapter problem on my ppc board (MPC52xx style). The ntwork adapter does not seem to intialize correctly when booted without 'help from uboot' The adapter works properly when I first use it with uboot. E.g. using tftp to load the kernel or just issuing

ppc_set_hwdebug vs ptrace_set_debugreg

2010-11-27 Thread Andreas Schwab
Why does ptrace_set_debugreg call register_user_hw_breakpoint, but ppc_set_hwdebug doesn't? Shouldn't ppc_set_hwdebug set the DABR_DATA_(READ|WRITE|TRANSLATION) bits in the dabr? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 827