Subject: Re: panic in pmap_enter()
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Chuck Silvers <chuq@chuq.com>
List: port-sh3
Date: 11/08/2005 03:29:40
On Tue, Nov 08, 2005 at 08:06:31PM +0900, Izumi Tsutsui wrote:
> I've got another panic after this fix:
> 
> ---
> panic: tlb_handler: invalid user-space access from kernel mode va=0x00000000, ss
> r=0x400000f0, spc=0x8c0f4c26  lwp=0x8c8a9220 onfault=0x0
> Stopped in pid 1185.1 (amd) at	netbsd:cpu_Debugger+0x6:        mov     r14,r15
> 
> db> tr
> cpu_Debugger() at netbsd:panic+0x98
> panic() at netbsd:tlb_exception+0x3ec
> tlb_exception() at 0x8c000484
> <EXPEVT 040; SSR=400000f0> at netbsd:__pmap_pte_alloc+0x2e
> __pmap_pte_alloc() at netbsd:pmap_enter+0x124
> pmap_enter() at netbsd:uvm_fault+0x3ec
> uvm_fault() at netbsd:tlb_exception+0x1d8
> tlb_exception() at 0x8c000484
> <EXPEVT 040; SSR=00000001> at 0x40914e
> db>
> ---
> 
> Is this caused by just lacking an error check (patch attached),
> or more serious problem?

it's just the lack of that error check.  your patch looks fine.

-Chuck