All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David O'Shea" <dcoshea@gmail.com>
To: linux-8086@vger.kernel.org
Subject: Re: Memory issues and USB support?
Date: Sun, 4 Jun 2017 23:25:06 +0930	[thread overview]
Message-ID: <CAN0DjM1gjA4n=dL6wy2jy5-npTCuB3XrxVRJGV1yFMX7Dsw2BQ@mail.gmail.com> (raw)

Hi all,

I'm new here, and I'm just about to send a bunch of emails about
various things, but I will probably quieten down fairly quickly, so
don't worry :)

> From: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
> Date: Sun, 19 Mar 2017 14:27:45 +0000
>
> ...
>
> On an 8086 the other option is to support EMM boards. That allows you up
> to 4MB or so of which 64K at a time is visible in a fixed memory window -
> that's actually ideal for ELKS but fiddly for memory management as any
> application that's got split code/data and can be over 64K will need to
> be arranged so only half of it lives in EMM space.

Apologies if I'm getting things extremely muddled up here, but I take
it that since you're not in protected mode, you don't get to have page
faults which give the kernel the opportunity to make the code/data the
application wants available, and instead the application is going to
have to be aware of the fact that some of it is not necessarily
directly addressable without asking the kernel first?

I always knew about EMS having a 64KB page window from the DOS days,
but https://en.wikipedia.org/wiki/Expanded_memory says that in LIM EMS
4.0 "any 16 KB region in lower RAM [could] be mapped to expanded
memory", which makes it sound to me like the ELKS kernel could at
least map in a process's memory when it's about to run it and then
unmap it when it switches to another process?  As it is, with LIM EMS
3.2, even if you can only map in a single 64KB page at a time, you
could at least do that for some of their memory.  I guess you also get
some memory protection from this, right?

Just curious - not planning to try my hand at implementing any of that, sorry!

Thanks in advance,
David

             reply	other threads:[~2017-06-04 13:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-04 13:55 David O'Shea [this message]
2017-06-05 14:41 ` Memory issues and USB support? Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2017-03-19  6:02 Derek Johansen
2017-03-19 13:57 ` Jody Bruchon
2017-03-19 14:27 ` Alan Cox

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='CAN0DjM1gjA4n=dL6wy2jy5-npTCuB3XrxVRJGV1yFMX7Dsw2BQ@mail.gmail.com' \
    --to=dcoshea@gmail.com \
    --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.