[Top] [All Lists]

Got trap No.23 when booting mips32 ?

Subject: Got trap No.23 when booting mips32 ?
From: "wilbur.chan" <>
Date: Wed, 21 Oct 2009 22:40:32 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=twlaxPhnsUZlOKUe9bguPr9H4qJVcArLHpV7cG10Ysg=; b=mJaeWmnIctBfn4r5/MALzr8LjXP+WdburunWK/NKWqfq981aOZ7I5kHr0L41xang2m gwiJPkADo8zXLkEjhb9ztdaZw3/SG6yrrvp1FR6+q43S1rnX8bgUx882EBrfX2eUrX5R ZmF27U190dreFRrRVEZG6GwtC0dapRfbudlsU=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KgUFkh30Au0vifMHR3s1MevNyjKPy+v2MIP+PS8i1DLNT0H/pbFwWR+1MsqaR6CMFd x4VZXOuCEYDELTFjAJrUz9peC8zWjFVAfo7fW0VuRaO6vXI974/kdPVUOlHN+/39/DT/ egrTtjGBJXj2DOp2UJ/drfo3rcqvBPAFy3PGk=
Original-recipient: rfc822;
Hi all,

I've got some problem when booting mips32.

I got a No.23 trap when calling start_kernel --->  local_irq_enable :

irq 23, desc: 802a98a0, depth: 1, count: 0, unhandled: 0
->handle_irq():  80148c6c, handle_bad_irq+0x0/0x2b4
->chip(): 8029f738, 0x8029f738
->action(): 00000000
unexpected IRQ # 23

No.23 trap is a Watch trap, which means that, when

"Physical address of load/store matched enabled value in

WatchLo/ WatahHi registers." happened, a No.23 trap was triggered by cpu.

So I used macro

__u32 watch_regh0= read_c0_watchhi0();
__u32 watch_regl0= read_c0_watchlo0();

to retrieve value from WatchHi and WatchLo,found them 0x1 and 0x0
respectively,which mean that ,

'r' together with  'w' bits were set to zero and no trap should be triggered.

But now , I got a 23 trap, why ?

At last , I used  to set WatchHi to 0x0, but failed , found it  still 0x1 after

calling write_c0_watchhi0(0)

Any suggestion would be grateful.


<Prev in Thread] Current Thread [Next in Thread>