From: ron minnich <rminnich@gmail.com>
To: lucio@proxima.alt.za,
Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Dynamic loading et al (Was: Pegasus 2.6 is released)
Date: Sun, 1 Feb 2009 12:14:26 -0800 [thread overview]
Message-ID: <13426df10902011214i5e02a024h85da1a97bbe3ddc4@mail.gmail.com> (raw)
In-Reply-To: <1dd94a0c1dc12f5ec3b51d38dc0fa017@proxima.alt.za>
On Sun, Feb 1, 2009 at 10:42 AM, <lucio@proxima.alt.za> wrote:
>> This is what I'm doing on bg/p now. I've got a small program that
>> reads in an elf binary, sets up the argv/env/aux vector(ppc thing) and
>> jumps to main. It works. I use libmach.
>
> Can you share documentation and code? Although I would have to limit
> my experimentation to the 386 platform rather than the PPC.
--rw-r--r-- M 1614 rminnich sys 7183 Feb 1 15:06
/n/sources/contrib/rminnich/bgp/machcnk.c
There is stuff in there specific to bgp, as you can see. This is
derived from gpl'ed code fore coreboot but I was able to use the
wonderful libmach -- which does need a few more changes, I have a
private copy with an enhancement I doubt you will need. It's pretty
simple code and you won't need the devsegment stuff -- that's a very
bgp-specific requirement -- you can just malloc code for text and
data, and you can just use the plan 9 heap, whereas bgp needs a
different heap. Long story.
>
> And what do you use to generate the ELF code? Static or dynamic?
The BGP toolchain, which produces statically linked binaries.
I am also supporting limited linux emulation on BGP but in kernel. The
notes approach is higher overhead than I want to pay. The open and
write of /dev/cnk is what flips a process into "linux system call
interface" mode. The only mmap I support is for anon memory.
thanks
ron
next prev parent reply other threads:[~2009-02-01 20:14 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-01 4:29 [9fans] Pegasus 2.6 is released Kenji Arisawa
2009-02-01 4:41 ` lucio
2009-02-01 4:47 ` Kenji Arisawa
2009-02-01 4:43 ` John Barham
2009-02-01 4:50 ` andrey mirtchovski
2009-02-01 5:47 ` John Barham
2009-02-01 6:44 ` erik quanstrom
2009-02-01 7:27 ` John Barham
2009-02-01 11:12 ` Francisco J Ballesteros
2009-02-01 12:56 ` erik quanstrom
2009-02-02 19:25 ` sqweek
2009-02-02 19:44 ` erik quanstrom
2009-02-02 19:49 ` Roman V. Shaposhnik
2009-02-02 21:22 ` John Barham
2009-02-02 21:27 ` erik quanstrom
2009-02-02 21:32 ` David Leimbach
2009-02-02 22:11 ` Roman V. Shaposhnik
2009-02-02 22:17 ` erik quanstrom
2009-02-02 22:30 ` Anthony Sorace
2009-02-02 22:44 ` erik quanstrom
2009-02-02 22:57 ` Anthony Sorace
2009-02-02 23:04 ` Bruce Ellis
2009-02-03 4:26 ` lucio
2009-02-03 4:43 ` Bruce Ellis
2009-02-03 6:38 ` ron minnich
2009-02-02 23:18 ` David Leimbach
2009-02-02 22:12 ` ron minnich
2009-02-02 22:14 ` erik quanstrom
2009-02-02 22:32 ` ron minnich
2009-02-02 22:34 ` erik quanstrom
2009-02-02 22:18 ` Roman V. Shaposhnik
2009-02-02 22:22 ` Francisco J Ballesteros
2009-02-02 22:30 ` Roman V. Shaposhnik
2009-02-03 10:55 ` Richard Miller
2009-02-03 16:03 ` ron minnich
2009-02-03 16:07 ` erik quanstrom
2009-02-03 16:48 ` ron minnich
2009-02-03 17:01 ` erik quanstrom
2009-02-02 22:07 ` Roman V. Shaposhnik
2009-02-01 7:31 ` [9fans] Dynamic loading et al (Was: Pegasus 2.6 is released) lucio
2009-02-01 17:26 ` ron minnich
2009-02-01 18:42 ` lucio
2009-02-01 20:14 ` ron minnich [this message]
2009-02-01 18:04 ` Dave Eckhardt
2009-02-01 18:39 ` lucio
2009-02-01 11:26 ` [9fans] Pegasus 2.6 is released Charles Forsyth
2009-02-01 11:56 ` lucio
2009-02-01 13:02 ` erik quanstrom
2009-02-02 17:38 ` John Barham
2009-02-02 17:48 ` 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=13426df10902011214i5e02a024h85da1a97bbe3ddc4@mail.gmail.com \
--to=rminnich@gmail.com \
--cc=9fans@9fans.net \
--cc=lucio@proxima.alt.za \
/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).