Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Jon Burgess" <Jon_Burgess@eur.3com.com>
To: Rob Lembree <lembree@metrolink.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Xilleon port from 2.4.5 to top of tree, asm("$28") problem
Date: Sun, 28 Jul 2002 19:01:35 +0100	[thread overview]
Message-ID: <80256C04.0063783A.00@notesmta.eur.3com.com> (raw)



>During boot-up, 'current' (which eventually evaluates to
>an offset of register struct thread_info *__current_thread_info
>__asm__("$28");) is null plus the offset, in sock_alloc,
>obviously making the kernel take a big dive.
>
>    Are there any obvious reasons why this would evaluate
>to null?

I've seen similar things when investigating a kernel locking hard during boot.
The two causes I found were:

- Interrupts being enabled before the interrupt handlers are installed and
working.

- CP0 register being corrupted, leaving the CP0_STATUS CU0 bit unset. This leads
the exception routines (normally the interrupt handler) to think the exception
occured in usermode code and trying to derefence the 'current' pointer, but it
still NULL during the early kernel initialisation. I think this situation causes
a nested stream of TLB faults.

One way to diagnose 1 is to force the CP0_BEV to be left on during the early
kernel initialisation. This should force any exceptions such as an interrupt to
go to your boot rom exception handlers, which will probably dump out the cause
and location of the exception.

I eventually traced problem (2) back to a hardware problem hitting the
blast_icache() routine. See my post with the subject 'mips32_flush_cache routine
corrupts CP0_STATUS with gcc-2.96' on this mailing list for further details.

      Jon Burgess

             reply	other threads:[~2002-07-28 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-28 18:01 Jon Burgess [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-07-25 13:53 Xilleon port from 2.4.5 to top of tree, asm("$28") problem Rob Lembree

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=80256C04.0063783A.00@notesmta.eur.3com.com \
    --to=jon_burgess@eur.3com.com \
    --cc=lembree@metrolink.com \
    --cc=linux-mips@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox