🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WB 1.4 (actually Amiga & MMU)

#10925
From: Rob Peck
Date: Thu, 12 Jan 1989 01:52
37 lines
2193 bytes
As a followup to Chris Gray's message, what I was thinking of was something
that would work with an MMU without much hassle.  In essence, I was thinking
of an interface library that would for example contain functions such as:

	RegisterMeWithSystem(); /* passes my task id in for resource track */
	NWindowID = AllocateStandardWindow();
	ModifyWindowParm(WindowID, parmValue);
	WindowID = OpenMyWindow(NWindowID);
	/* using the window here */
   cleanup:
	CloseMyWindow(WindowID);
	DumpWindowStructure(WindowID);

   alternate_cleanup:
	UnregisterMe();  /* system closes all my windows and deallocates
			  * anything I got ID's for from kernel process
			  */

[by this method, trying to avoid passing pointers to MMU-protected task-
local memory]

WindowID is an integer you get back from the kernel function that
is actually doing the resource tracking and AllocateStandardWindow gives
you a NewWindow structure, but managed by the system, not by the program.
Then almost all of the interface functions shown in the sample become
some form of message passed to the task that actually owns the chip memory.
Though there is the overhead of the call, there may not be quite as much
need to copy entire data structures through some commonly accessible
memory system.  Each message passed to the kernel process includes
the taskid (from FindTask(0)) so the kernel knows who is doing the asking
and can track resources if appropriate.  Too much overhead?.. maybe.

I have not thought this out very thoroughly, and have not been exposed
too much to other OS's that might use a similar method.  Just thought
I'd output a bit more of the thinking that prompted my original posting.

Rob Peck
Technical Details
Message-ID: <1656@ardent.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ubvax!ardent!rap
References: <277@ubc-cs.UUCP> <5062@garfield.MUN.EDU> <1424@ardent.UUCP> <760@myrias.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ubvax!ardent!rap
From: rap@ardent.UUCP (Rob Peck)
Newsgroups: comp.sys.amiga.tech
Subject: Re: WB 1.4 (actually Amiga & MMU)
Summary: more musings (high overhead, but MMU compatible-ish?)
Message-ID: <1656@ardent.UUCP>
Date: 12 Jan 89 01:52:34 GMT
References: <277@ubc-cs.UUCP> <5062@garfield.MUN.EDU> <1424@ardent.UUCP> <760@myrias.UUCP>
Distribution: na
Organization: Dana Computer, Inc., Sunnyvale, CA
Lines: 37