9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@caldo.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] loading plan 9 directly from linuxbios
Date: Wed, 29 Oct 2003 08:08:48 +0000	[thread overview]
Message-ID: <8c06d2c68998f806c7a0cb8b7fdcd2f9@caldo.demon.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0310282334450.23763-100000@maxroach.lanl.gov>


>>Also what is a reasonable way to do this:
>>	$PADDR($tgdtptr(SB))
>>or is that impossible?

that's impossible.

masking it off as you do is fine.

>>I suspect the tgdtptr is bogus ... probably an 0x8000xxxx address.

i'd expect so, although nm on the executable will show you.

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

i'd put it what's needed a separate l16.s prefix, using x16.h
to write it (most of what you need is at the start of 9load's l.s),
then link l16.$O in front of a slightly modified l.$O and enter the kernel at l16.$O's start.



  reply	other threads:[~2003-10-29  8:08 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 [this message]
2003-10-29  9:37   ` C H Forsyth
2003-10-29 16:16   ` ron minnich
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=8c06d2c68998f806c7a0cb8b7fdcd2f9@caldo.demon.co.uk \
    --to=forsyth@caldo.demon.co.uk \
    --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).