9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ok, *init* is running on ts7200
@ 2005-03-18 15:57 Ronald G. Minnich
  2005-03-18 16:00 ` Ronald G. Minnich
  0 siblings, 1 reply; 6+ messages in thread
From: Ronald G. Minnich @ 2005-03-18 15:57 UTC (permalink / raw)
  To: 9fans


although not much else is happening.

virtual address caches are touchy when it comes time to flush them and
change mappings ...

in particulsr, you have to
	flush()
	change mappings
	invalidate TLBs

in careful order. Note that PACs are not nearly so picky.

anyway ... where I'm at is init code is in memory, I'm trying to switch to
it, at some point mmuswitch is called again, then again, and that third
time ... no joy, the system dies.


but it's closer .

ron


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

* Re: [9fans] ok, *init* is running on ts7200
  2005-03-18 15:57 [9fans] ok, *init* is running on ts7200 Ronald G. Minnich
@ 2005-03-18 16:00 ` Ronald G. Minnich
  2005-03-18 16:13   ` Charles Forsyth
  0 siblings, 1 reply; 6+ messages in thread
From: Ronald G. Minnich @ 2005-03-18 16:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



On Fri, 18 Mar 2005, Ronald G. Minnich wrote:

> in particulsr, you have to
> 	flush()
> 	change mappings
> 	invalidate TLBs

oh yeah, note that bitsy was not nearly as problematic due to the va==pa
mapping...

ron


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

* Re: [9fans] ok, *init* is running on ts7200
  2005-03-18 16:00 ` Ronald G. Minnich
@ 2005-03-18 16:13   ` Charles Forsyth
  2005-03-18 16:16     ` Ronald G. Minnich
  0 siblings, 1 reply; 6+ messages in thread
From: Charles Forsyth @ 2005-03-18 16:13 UTC (permalink / raw)
  To: 9fans

it's even more fun on the powerpc where the
traps (before book E, i think that's the one that changed it)
throw away the painfully-crafted virtual memory
environment and leave the processor in real (physical addressing) mode.
it's quite unreal: crawl up out of the swamp again...



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

* Re: [9fans] ok, *init* is running on ts7200
  2005-03-18 16:13   ` Charles Forsyth
@ 2005-03-18 16:16     ` Ronald G. Minnich
  2005-03-18 16:30       ` Charles Forsyth
  2005-03-18 16:33       ` Charles Forsyth
  0 siblings, 2 replies; 6+ messages in thread
From: Ronald G. Minnich @ 2005-03-18 16:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



On Fri, 18 Mar 2005, Charles Forsyth wrote:

> it's even more fun on the powerpc where the
> traps (before book E, i think that's the one that changed it)
> throw away the painfully-crafted virtual memory
> environment and leave the processor in real (physical addressing) mode.

Oh my goodness that's stupid. I wonder why they did that?

ron


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

* Re: [9fans] ok, *init* is running on ts7200
  2005-03-18 16:16     ` Ronald G. Minnich
@ 2005-03-18 16:30       ` Charles Forsyth
  2005-03-18 16:33       ` Charles Forsyth
  1 sibling, 0 replies; 6+ messages in thread
From: Charles Forsyth @ 2005-03-18 16:30 UTC (permalink / raw)
  To: 9fans

>>Oh my goodness that's stupid. I wonder why they did that?

it's certainly annoying.  for x86 fans (and those processors
often need big fans) i should explain that
at least real mode in the powerpc, which sets you back
to the instruction before you enabled vm, isn't as bad as `real'
mode on the x86, which sets you back about 25 years.
the powerpc at least is much the same processor but with
VM switched off (but you've got to jump through a few
hoops to put it on again).  one popular way to switch the mmu back on
is to do a return-from-interrupt back into the trap handler,
having saved the state.  one reason is that just setting
the appropriate bits in the MSR might cause trouble (or might not).
either way, to save the state you've got to
address the appropriate kernel save area.
are those memory accesses cached in that state?
well ... it depends.



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

* Re: [9fans] ok, *init* is running on ts7200
  2005-03-18 16:16     ` Ronald G. Minnich
  2005-03-18 16:30       ` Charles Forsyth
@ 2005-03-18 16:33       ` Charles Forsyth
  1 sibling, 0 replies; 6+ messages in thread
From: Charles Forsyth @ 2005-03-18 16:33 UTC (permalink / raw)
  To: 9fans

anyhow, you possibly don't feel quite so bad about those VACs now.



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

end of thread, other threads:[~2005-03-18 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-18 15:57 [9fans] ok, *init* is running on ts7200 Ronald G. Minnich
2005-03-18 16:00 ` Ronald G. Minnich
2005-03-18 16:13   ` Charles Forsyth
2005-03-18 16:16     ` Ronald G. Minnich
2005-03-18 16:30       ` Charles Forsyth
2005-03-18 16:33       ` Charles Forsyth

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).