Hi;
Todd L. Miller wrote:
>
> > Looking at jbarray.h, I guess what I'm saying is: create an array with
> > the "myElements" field set to the specified address, and
> > "myNumberOfElements" to the specified length.
>
> This is actually a really intelligent suggestion. JM, I don't
> have the jos docs handy, but do they allow this with their memory model?
> It seems like a very good way to speed things up immensely, and the
> standard locking ops will work on arrays, as well.
JavaOS has memory classes exactly like that --- Figure 3-20, on page 3-41 of the
JavaOS Reference Guide explains the heirarchy (abstract classes in lowercase):
memory
main memory
accessiblememory
portiomemory
UnSwappedPortIOMemory
SwappedPortIOMemory
virtualmemory
virtualiomemory
UnSwappedVirtualIOMemory
SwappedVirtualIOMemory
virtualregularmemory
UnSwappedVirtualRegularMemory
VirtualRegularMemory
PhysicalMemory
MemoryDescriptor
DMAMemory
Unfortunately, I cannot seem to find a tabular listing for all the methods. The
accompanying text lists some methods, but not all. The "Inside JavaOS" book
lists some I couldn't find in the documents. One of them was a "setBytes"
method that set all the memory in the memory object (can't remember which one --
the book is at home) to the value you specified. Correct me if I'm wrong, but
this is exactly what we are wanting here.
Note also how useful classes like these would be for a Java-language paging
daemon/thread. And for drivers (where we use special in8/out8 methods, they use
a memory object to organize the ports).
-jm
--
==== John Morrison ==== MaK Technologies, Inc.
==== Chief Technology Officer ==== 185 Alewife Brook Pkwy, Cambridge, MA 02138
==== [EMAIL PROTECTED] ==== http://www.mak.com/welcome.html
==== vox:617-876-8085 x115 ==== fax:617-876-9208
_______________________________________________
Kernel maillist - [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel