Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Fix nasa#66, Simplify address-of element 0
Browse files Browse the repository at this point in the history
  • Loading branch information
zufishanali authored and astrogeco committed Feb 25, 2020
1 parent 0704c59 commit 2225fbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fsw/mcp750-vxworks/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int32 CFE_PSP_GetResetArea (cpuaddr *PtrToResetArea, uint32 *SizeOfResetArea)
}
else
{
*PtrToResetArea = (cpuaddr)&(CFE_PSP_ReservedMemoryPtr->ResetMemory[0]);
*PtrToResetArea = (cpuaddr)(CFE_PSP_ReservedMemoryPtr->ResetMemory);
*SizeOfResetArea = CFE_PSP_RESET_AREA_SIZE;
return_code = CFE_PSP_SUCCESS;
}
Expand Down Expand Up @@ -263,7 +263,7 @@ int32 CFE_PSP_GetUserReservedArea(cpuaddr *PtrToUserArea, uint32 *SizeOfUserArea
}
else
{
*PtrToUserArea = (cpuaddr)&(CFE_PSP_ReservedMemoryPtr->UserReservedMemory[0]);
*PtrToUserArea = (cpuaddr)(CFE_PSP_ReservedMemoryPtr->UserReservedMemory);
*SizeOfUserArea = CFE_PSP_USER_RESERVED_SIZE;
return_code = CFE_PSP_SUCCESS;
}
Expand Down Expand Up @@ -300,7 +300,7 @@ int32 CFE_PSP_GetVolatileDiskMem(cpuaddr *PtrToVolDisk, uint32 *SizeOfVolDisk )
}
else
{
*PtrToVolDisk = (cpuaddr)&(CFE_PSP_ReservedMemoryPtr->VolatileDiskMemory[0]);
*PtrToVolDisk = (cpuaddr)(CFE_PSP_ReservedMemoryPtr->VolatileDiskMemory);
*SizeOfVolDisk = CFE_PSP_VOLATILE_DISK_SIZE;
return_code = CFE_PSP_SUCCESS;

Expand Down

0 comments on commit 2225fbf

Please sign in to comment.