From: Will Deacon Date: Mon, 8 Aug 2011 13:26:53 +0000 (+0100) Subject: ARM: hw_breakpoint: trap undef instruction exceptions in reset_ctrl_regs X-Git-Tag: v3.2-rc1~130^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d352e3d006c9589f22580212c3822cf62b6d775;p=pandora-kernel.git ARM: hw_breakpoint: trap undef instruction exceptions in reset_ctrl_regs The ARM debug registers can only be accessed if the DBGSWENABLE signal to the core is driven HIGH by the DAP. The architecture does not provide a way to detect the value of this signal, so the best we can do is register an undef_hook to trap debug register co-processor accesses and then fail if the trap is taken. Signed-off-by: Will Deacon --- Reading git-diff-tree failed