Port-evbmips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Which kernel for Lemote Yeeloong?



On Sun, 4 Dec 2011, Manuel Bouyer wrote:

Suspects are:
- switch to lwp0 stack:
       PTR_L   sp, L_PCB(MIPS_CURLWP)          # switch to lwp0 stack
        nop
        PTR_ADDU sp, USPACE - TF_SIZ - CALLFRAME_SIZ
- Raise to IPLHIGH:
        jal     _C_LABEL(splhigh_noprof)
- enable interrupts:
       mfc0    v0, MIPS_COP_0_STATUS
        or      v0, MIPS_SR_INT_IE
        mtc0    v0, MIPS_COP_0_STATUS

I would first comment out all of them and then reenabling  to lwp0 stack,
then Raise to IPLHIGH and finally enable interrupts.

With everything commented out, kernel begins executing and I get lots
of attach/configure messages down to "mcclock" where it hangs again,
no doubt because of the stuff that was commented out.

When I reenabled the code to switch to lwp0 stack, the previous behavior
of hanging just after returning from mach_init() reappeared.

The stack area for lwp0 reported just after mips_init_lwp0_uarea() looks
peculiar, but then I the actual address space layout for this machine
(yet).

--
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index