9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@lanl.gov>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] loading plan 9 directly from linuxbios
Date: Wed, 29 Oct 2003 09:16:38 -0700	[thread overview]
Message-ID: <Pine.LNX.4.44.0310290912220.28090-100000@maxroach.lanl.gov> (raw)
In-Reply-To: <8c06d2c68998f806c7a0cb8b7fdcd2f9@caldo.demon.co.uk>

On Wed, 29 Oct 2003, Charles Forsyth wrote:

> the deeper problem is that (as i understand it) you're entering the code
> in real mode, which is of course quite unreal.  in that case you'll need
> to do what 9load does in l.s (using x16.h) to write the real mode code,
> because 8a/8l isn't very good at 16-bit code (though 8l could make it
> easier, with some as yet unquantified amount of work).

Entering from linuxbios and also from 9load, you are entering plan 9 in
32-bit protected mode with the gdt set up. The issue from linuxbios is
that the gdt is not Plan9-compatible. I think it is probably good hygiene
for plan 9 to be able to operate under other loaders than 9load, so
overall it is probably good for Plan 9 to assume

- machine is in protected mode (but no paging turned on)
- gdt is maybe right, but maybe wrong
- lgdt can be used in 32-bit mode
- plan 9 should reload the gdt in l.s, 32-bit instructions, before
  it sets up paging

ron



  parent reply	other threads:[~2003-10-29 16:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29  6:42 ron minnich
2003-10-29  8:08 ` Charles Forsyth
2003-10-29  9:37   ` C H Forsyth
2003-10-29 16:16   ` ron minnich [this message]
2003-10-29 16:39     ` David Presotto
2003-10-29 16:46       ` ron minnich
2003-10-29 16:54         ` ron minnich
2003-10-29 20:58     ` C H Forsyth
2003-10-29 23:17       ` ron minnich
2003-10-29  7:42 Tiit Lankots
2003-10-29 16:12 ` ron minnich

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=Pine.LNX.4.44.0310290912220.28090-100000@maxroach.lanl.gov \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).