Wrote tree allocate and free operations
[keystone-rtos/rm-lld.git] / src / rm_services.c
index fbe8119cd12ffa87294f2cf7f7fd087d99615bf2..6d413246b2b2fb29f45f8993439bff3057462cd3 100644 (file)
@@ -96,7 +96,7 @@ void Rm_serviceHandler (void *rmHandle, Rm_ServiceReqInfo *serviceRequest,
         transaction->state = RM_SERVICE_PROCESSING;
         strcpy(&(transaction->resourceInfo.name)[0], serviceRequest->resourceName);
         transaction->resourceInfo.base = serviceRequest->resourceBase;
-        transaction->resourceInfo.range = serviceRequest->resourceRange;
+        transaction->resourceInfo.length = serviceRequest->resourceLength;
         transaction->resourceInfo.alignment = serviceRequest->resourceAlignment;
         strcpy(&(transaction->resourceInfo.nsName)[0], serviceRequest->resourceNsName);
 
@@ -121,7 +121,7 @@ void Rm_serviceHandler (void *rmHandle, Rm_ServiceReqInfo *serviceRequest,
                 (transaction->type == Rm_service_RESOURCE_ALLOCATE_BY_NAME))
             {
                 serviceResponse->resourceBase = transaction->resourceInfo.base;
-                serviceResponse->resourceRange = transaction->resourceInfo.range;
+                serviceResponse->resourceLength = transaction->resourceInfo.length;
             }
 
             /* Delete the transaction since a response was received immediately */
@@ -161,7 +161,7 @@ void Rm_serviceResponder (Rm_Inst *rmInst, Rm_Transaction *transaction)
          (transaction->type == Rm_service_RESOURCE_ALLOCATE_BY_NAME)))
     {
         serviceResponse.resourceBase = transaction->resourceInfo.base;
-        serviceResponse.resourceRange = transaction->resourceInfo.range;
+        serviceResponse.resourceLength = transaction->resourceInfo.length;
     }
 
     /* Issue the callback to the requesting component with the response information */