🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7940

Memory Protection (formerly Re: Help --> How to prevent...)

#7940
From: Brett Coon
Date: Mon, 07 Jan 1991 23:34
36 lines
2425 bytes
In article <17134@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
>In article <1991Jan5.200226.19718@msuinfo.cl.msu.edu> dailey@frith.uucp (Chris Dailey) writes:
>>Even fake memory protection would due for many of us.  How about a
>>command like "run such and such a program so it doesn't touch anything
>>other than the OS".  It gets its own space, tucked away from the rest of
>>the system?
>
>	The problem is defining "it's own space".  What is part of the OS,
>and what is part of an App?  What if an "application" (let's say Mount)
>allocates a data structure and adds it to a system list?

One thought I had for a sort of compromise is a PD library of MMU routines
that programs could use to protect themselves, especially during the devel-
opment stage, but optionally as commercial products as well.  The MMU library
would provide replacements or patches for various AmigaDOS calls to allow
programs to specifically decide what areas of memory they have access to as
well as what areas of their memory they want to protect.  Programs that are
written without the MMU libraries would function normally, with full permission
to trash one another's memory.  This would be considerably easier to implement
than "real" memory protection, since applications that use the MMU functions
could be considered trustworthy.  Its purpose would be to provide a reliable
means to debug programs and prevent or contain crashes.  If the library 
defaulted to standard non-MMU system calls on machines that don't have an MMU,
developers would have to reason to remove the code once development finishes,
so eventually there would be many programs available with MMU support.

Of course, this would still be a substantial project, but I think the benefits
would be great.

-brett


-- 
|Brett Coon           |  uunet!smosjc!brett                       |
|S-MOS Systems, Inc.  |  "Very exciting... as a luggage problem." |
|San Jose, CA         |            -Joe Vs. The Volcano           |
Technical Details
Message-ID: <325@smosjc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!smosjc!brett

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!smosjc!brett
From: brett@smosjc.UUCP (Brett Coon)
Newsgroups: comp.sys.amiga.tech
Subject: Memory Protection (formerly Re: Help --> How to prevent...)
Keywords: MMU, developers
Message-ID: <325@smosjc.UUCP>
Date: 7 Jan 91 23:34:45 GMT
Organization: S-MOS Systems, San Jose, Ca., USA
Lines: 36