All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: "wilbur.chan" <wilbur512@gmail.com>
Cc: "Kevin D. Kissell" <kevink@paralogos.com>,
	Sergei Shtylyov <sshtylyov@ru.mvista.com>,
	linux-mips@linux-mips.org
Subject: Re: Got trap No.23 when booting mips32 ?
Date: Thu, 22 Oct 2009 09:03:05 -0700	[thread overview]
Message-ID: <4AE08239.7030302@caviumnetworks.com> (raw)
In-Reply-To: <e997b7420910220755m3e78c397ia5f183c580fb170b@mail.gmail.com>

wilbur.chan wrote:
> 2009/10/22 Kevin D. Kissell <kevink@paralogos.com>:
>> wilbur.chan wrote:
>>> Kernal didn't resgister IRQ 23 when booting. Hmm....the only '23'
>>> number I can find in kernel is in traps.c.
>>>
>>> Why a 23 IRQ was triggered?
>>>
>>>
>> The usual reason would be a failure to correctly initialize an interrupt
>> controller, or the Status.IM mask field.  The kernel complains precisely
>> *because* IRQ 23 wasn't registered, but an interrupt was nevertheless
>> delivered that was decoded as being that IRQ.
>>
>>         Regards,
>>
>>         Kevin K.
>>
> 
> 
> Thanks for your suggestion.
> 
> And I found that , as a matter of  fact , kernel has registered No.23 as a trap.
> 
> In trap_init :
> 
> /*
> 1419          * Only some CPUs have the watch exceptions.
> 1420          */
> 1421         if (cpu_has_watch)
> 1422                 set_except_vector(23, handle_watch);
> 
> 
> So, if a No.23 "signal" happened , kernel should  invoke handle_watch instead.
> 
> 
> But why here kernel complained ? and why kernel entered the IRQ branch
> (do_IRQ) rather than trap branch?
> 

You still don't understand.  You are not getting the watch exception. 
The '23' you see is not at all related to the exception code in the 
C0_cause register.

David Daney

  reply	other threads:[~2009-10-22 16:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-21 14:40 Got trap No.23 when booting mips32 ? wilbur.chan
2009-10-21 16:09 ` David Daney
2009-10-22  0:02   ` wilbur.chan
2009-10-21 16:12 ` Sergei Shtylyov
2009-10-22  0:04   ` wilbur.chan
2009-10-22  0:50     ` Kevin D. Kissell
2009-10-22 14:55       ` wilbur.chan
2009-10-22 16:03         ` David Daney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-22 20:16 David VomLehn
2009-10-23 10:25 ` wilbur.chan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AE08239.7030302@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=kevink@paralogos.com \
    --cc=linux-mips@linux-mips.org \
    --cc=sshtylyov@ru.mvista.com \
    --cc=wilbur512@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.