LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-19-2007, 04:03 AM   #1
gloridel
LQ Newbie
 
Registered: Apr 2007
Posts: 25

Rep: Reputation: 0
Catching the Faulting Address


Hello

I am trying to capture the faulting address when a DataTLBError exception occurs. So in my head_440.S, I added a "bl" instruction , unfortunately it cause a Panic. Here's how I did it

processor: PPC 440
linux version: 2.4.20

in head_440.S
Quote:
/* Data TLB Error Interrupt */
START_EXCEPTION(DataTLBError)
mtspr SPRG0, r20 /* Save some working registers */
mtspr SPRG1, r21
mtspr SPRG4W, r22
mtspr SPRG5W, r23
mtspr SPRG6W, r24
mfcr r21
mtspr SPRG7W, r21
mfspr r20, SPRN_DEAR /* Get
faulting address */

/*Add Start*/
mr r3, r20
bl do_something
/*Add End*/
do_something is a function written in C, actually inside the function, we just displayed the value to be able to monitor the faulting address. But somehow, Opps was still generated.

Is there another way to monitor the faulting address?

please... i am out of my mind debugging this
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine is page faulting Jimage Linux - Desktop 0 08-16-2006 07:58 AM
mv seg faulting? Tweakin Linux - General 1 05-05-2006 12:05 PM
Segmentation faulting? Brennan Linux From Scratch 8 10-05-2005 02:37 PM
Seg Faulting C. Where? DaveyB Programming 9 11-04-2004 02:00 PM
Compiler seg faulting fitz9948 Slackware 2 05-11-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration