From: u-vpoa@aetey.se
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-8086 <linux-8086@vger.kernel.org>
Subject: Re: the memory model being used in elks?
Date: Sun, 10 May 2015 23:19:44 +0200 [thread overview]
Message-ID: <20150510211944.GO8197@example.net> (raw)
In-Reply-To: <20150510212744.60ca87d4@www.etchedpixels.co.uk>
On Sun, May 10, 2015 at 09:27:44PM +0100, Alan Cox wrote:
> On Sun, 10 May 2015 20:40:27 +0200
> u-vpoa@aetey.se wrote:
> > I see, a minix-like static allocation (I'm guessing this is needed
> > because ELKS does not yet handle overlapping segments between different
> > processes so it does not want to allocate a whole segment to each process
> > per default?).
>
> Classic Unix defines the memory map as
>
> <--- Data ---><--- BSS ---> | <--- Space ---> | <--- Stack --- >
>
> Where the upper divide is SP and the lower one is set by brk() or sbrk().
> The space in the middle doesn't all really exist if you have an MMU with
> any kind of sane paging system.
Even without MMU overlapping 8086 segments allow the use of this <-Space->
for stack or data+bss of other processes. Wonder if/how this is handled
in elks (lacking the time to Use-The-Source...)
> If you have support built for ELKS pattern binaries then you can do
> resizing at runtime as they are laid out to allow the bss to extend
This is what I expected - but rebuilding the kernel with and without
the corresponding option did not seem to change the result.
Indicating the desired data area size with -H improved the outcome but still
the available space looks smaller than it should be. Sigh, I did not plan
to do kernel hacking just to make the pres utility work as it used to. :)
/Rl
next prev parent reply other threads:[~2015-05-10 21:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-08 20:14 the memory model being used in elks? u-vpoa
2015-05-09 17:03 ` One Thousand Gnomes
2015-05-09 17:47 ` u-vpoa
2015-05-09 17:50 ` Jody Bruchon
2015-05-09 18:38 ` u-vpoa
2015-05-10 15:31 ` Juan Perez-Sanchez
2015-05-10 18:40 ` u-vpoa
2015-05-10 20:27 ` Alan Cox
2015-05-10 21:19 ` u-vpoa [this message]
2015-05-10 21:51 ` Alan Cox
2015-05-11 6:10 ` u-vpoa
2015-05-11 9:27 ` Alan Cox
2015-05-11 11:25 ` u-vpoa
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=20150510211944.GO8197@example.net \
--to=u-vpoa@aetey.se \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-8086@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.