linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Seg fault whenever NIP=c0006000
@ 2001-07-18  8:11 Justin (Gus) Hurwitz
  2001-07-18 17:35 ` Scott Anderson
  0 siblings, 1 reply; 2+ messages in thread
From: Justin (Gus) Hurwitz @ 2001-07-18  8:11 UTC (permalink / raw)
  To: linuxppc-embedded


Late last week I started to get segfaults in the kernel. Initially I
thought the problem was in flush_Instruction_cache- I traced the crash
back to that code. I've been playing around with the cache code (disabling
the data cache), so this seemed possible. I added a couple of sync and
isync calls arond the instruction that looked to be failing as a way to
start debugging. I recomiled the kernel and ran it- it crashed again, in
the same function, at the same address (NIP=0xc0006000), but on a
different instruction (because I had added some before the first
instruction that crashed). This seemed odd to me. I next swapped the order
the order of a few functions defined in misc.s (flush_icache_range,
flush_dchache_icache, etc). The kernel was crashing in whichever function
coincided with 0xc0006000. I then put a branch instruction in the code
right before 0xc0006000 and leapfrogged that  address (padding with
nop's). Now things are working.

So- it appears that avoiding address 0xc0006000, and only that address, is
necessary for my kernel (true, I haven't tested every other byte of
memory, but the kernel does appear stable). Anyone have ideas a to what
could cause this?

Thanks,

-Gus


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Seg fault whenever NIP=c0006000
  2001-07-18  8:11 Seg fault whenever NIP=c0006000 Justin (Gus) Hurwitz
@ 2001-07-18 17:35 ` Scott Anderson
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Anderson @ 2001-07-18 17:35 UTC (permalink / raw)
  To: Justin (Gus) Hurwitz; +Cc: linuxppc-embedded


"Justin (Gus) Hurwitz" wrote:
> So- it appears that avoiding address 0xc0006000, and only that address, is
> necessary for my kernel (true, I haven't tested every other byte of
> memory, but the kernel does appear stable). Anyone have ideas a to what
> could cause this?

Sorry if this is an obvious question, but is there any chance that there
is some code somewhere that is either intentionally or unintentionally
setting up a hardware breakpoint?

    Scott Anderson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-18 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-18  8:11 Seg fault whenever NIP=c0006000 Justin (Gus) Hurwitz
2001-07-18 17:35 ` Scott Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).