home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- Path: sparky!uunet!grebyn!daily!richk
- From: richk@grebyn.com (Richard Krehbiel)
- Subject: Re: Why doesn't Amiga core-dump? *sigh*
- In-Reply-To: Blaise Tarr's message of Wed, 18 Nov 1992 00:35:45 EST
- Message-ID: <1992Nov20.034755.18486@grebyn.com>
- Lines: 44
- Sender: richk@grebyn.com (Richard Krehbiel)
- Organization: Grebyn Timesharing
- References: <BxL1K6.CnG@usenet.ucs.indiana.edu> <1992Nov15.103719.9969@sth.frontec.se>
- <92323.003545BGT101@psuvm.psu.edu>
- Date: Fri, 20 Nov 1992 03:47:55 GMT
-
- In article <92323.003545BGT101@psuvm.psu.edu> Blaise Tarr <BGT101@psuvm.psu.edu> writes:
-
- > bjst@sth.frontec.se (Bjorn Stenberg) says:
- > >shulick@navajo.ucs.indiana.edu writes:
- > >> Basically, I'm asking.. what allows a UNIX to coredump, and relativeily,
- > >> what does Amiga LACK that won't let it coredump w/o crashing?
- > >
- > >Memory protection.
- >
- > So why hasn't memory protection and resource tracking been
- > implemented on the Amiga?
-
- It would break a lot of applications, and Commodore can't afford to
- sacrifice applications (it has too few as it is). To do it, you need
- to introduce a new, incompatible API. Those newly-written apps which
- use the new API would have protection, and old apps would just crash.
- And, sonofagun, this is just like what happens when you boot Unix...
-
- > It doesn't SEEM too difficult of a project; use the MMU to make
- > sure that a program only acceses its own memory and public memory.
-
- Programs up until now do not declare to the OS which of their memory
- is public and which is not (you could flame programmers for this;
- there's a MEMF_PUBLIC flag that no one uses correctly, but it's too
- late now). They allocate memory, then pass pointers to this memory to
- other processes without informing the OS that they're no longer that
- memory's owner. So how can the OS tell? It can't. This is why a
- new, incompatible API is needed, so that apps can tell the OS what's
- happening. But, sonofagun, Unix works this way...
-
- > If it tries to peek where it's not supposed to, terminate that
- > process and free up its resources. This of course would require
- > Amigas with MMUs, so it couldn't be used on the low end machines,
- > but then the people who use the low end machines are typically not
- > the ones who would require memory protection.
- >
- > I must say that I have never programmed an MMU, and I don't know
- > how difficult of a challenge this would be. I would love to hear
- > other peoples' comments and ideas on this subject.
-
- AmigaDOS will *never* have memory protection and resource tracking;
- not if it lives to version 99.0 and runs on 680990's. If you want
- these, and it's important enough to you, you'll buy Unix. Or maybe
- you'll ditch that Amiga, buy a PC, and run OS/2. That's what I did.
- --
- Richard Krehbiel richk@grebyn.com
- OS/2 2.0 will do for me until AmigaDOS for the 386 comes along...
-