9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] double-mapping KZERO in l.s
@ 2007-08-22 21:51 erik quanstrom
  2007-08-22 23:02 ` ron minnich
  0 siblings, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2007-08-22 21:51 UTC (permalink / raw)
  To: 9fans

perhaps this is completely obvious, but why are the first
4 mb double-mapped in l.s at virtual address 0 and KZERO?

also, am i mixed up or should the comment about the double
mapping be on the following line?

- erik

/*
 * Now ready to use the new map. Make sure the processor options are what is wanted.
 * It is necessary on some processors to immediately follow mode switching with a JMP instruction
 * to clear the prefetch queues.
 */
	MOVL	$PADDR(CPU0PDB), CX		/* load address of page directory */
	MOVL	(PDO(KZERO))(CX), DX		/* double-map KZERO at 0 */
	MOVL	DX, (PDO(0))(CX)
	MOVL	CX, CR3


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

end of thread, other threads:[~2007-08-23  1:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-22 21:51 [9fans] double-mapping KZERO in l.s erik quanstrom
2007-08-22 23:02 ` ron minnich
2007-08-22 23:44   ` erik quanstrom
2007-08-23  1:42     ` ron minnich
2007-08-23  1:54       ` erik quanstrom

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