This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM1705
Hi. I'm running Linux 2.6.33 on an AM1705, and I'm debugging nasty memory issues in my user space application, so I'd like to have access to the hardware watchpoints for debug from gdb (or ptrace and a sigtrap handler). I found some patches that ARM added to the kernel to support them, but they're only for ARMv6 and up (and the debug interface seems to have changed a lot from ARM7/ARM9 to ARM11).
In the ARM docs for the ARM9 debug interface, I only see references to shifting in values to the debug registers over JTAG (which I don't have). So I just want to know how to set the values from within the ARM core in the Linux kernel.
Once I know that, I think I can figure it out from the ARM docs and openocd source.
Please make sure you read the forum guidelines first.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Yordan Kovachev:
Thanks for your help. I see from the openocd source for Arm926EJ-S (linked below) that the debug requests over JTAG are just MRC or MCR to CP15, so I should be able to do the same instructions in the kernel in assembly.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.