8xx bus monitoring
Robin Gilks
robin.gilks at tait.co.nz
Tue Feb 1 08:49:21 EST 2005
Pantelis Antoniou wrote:
>>>
>>> You get a machine check exception.
>>>
>>> It's pretty obvious then :)
>>>
>>
>> Using a 2.4.22 based kernel, as far as I can see a machine check
>> should be trapped (its only allowed to cause a reset in the reboot
>> code I think). Assuming I got it right and it really is trapped, how
>> come I always get a reset:-((
>>
>> Any pointers to the code that does setup for causing an exception
>> (rather than reset) would be appreciated.
>>
>
> Check the MSR register at the time of the access.
> Is RI set? If not instead of an exception you get a reset...
I don't understand this - the whole point is that an exception occurs
asynchronously and therefore I don't know where the access it, except of
course I don't get an exception!!!
Where (insert name of source file in kernel tree) is RI set in MSR (or
should be set but is missing from the kernel I'm using) so as to ensure
that an exception occurs and how does the kernel distinguish a bus
monitor timeout from other causes.
If the kernel (or the MPC8xx) is not capable of this then I guess I'll
just have to fix the hardware :-((
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
New Zealand
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
More information about the Linuxppc-embedded
mailing list