Patent ID: 7159223

Claim:
A computer implemented method of providing Java application layer access a fixed memory address space comprising: constructing a Java object having elements which occupy said fixed memory address space; whereby a Java application is provided access to the hardware peripheral's memory mapped registers directly through said Java object; wherein constructing a Java object comprises: creating an object descriptor; creating an object handle for the Java object which points to the object descriptor defining a new Java class having base address, length, and type parameters, which is used in constructing said Java object; and wherein new class is substantially defined in pseudocode as follows: Class AnchoredArray { public int element[ ]; public AnchoredArray(int baseaddress, int length) { element=lockDownElements(baseAdress,length); Static private native int[ ] lockDownElements(int baseAddress, int length); } void AnchoredArray_lockDownelements( ) { int base=popstack( ); int length=popstack( ); int *handle=malloc(SIZE_OF_HEADER); (instance*) handle->type=DEFAULT_TYPE; (arrayStruct*) handle->arrayBase=base; (arrayStruct*) handle->length=length; push handle; }.