Skip to content

Commit

Permalink
Change the symbols for RISC-V compatibility per upstream Issue 309
Browse files Browse the repository at this point in the history
  • Loading branch information
SterlingPeet committed May 8, 2024
1 parent 6fceb13 commit 7b4ddcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fsw/pc-linux/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void CFE_PSP_InitUserReservedArea(void);
/*
** External Declarations
*/
extern unsigned int _init;
extern unsigned int _fini;
extern unsigned int __executable_start;
extern unsigned int __etext;

/*
** Global variables
Expand Down Expand Up @@ -792,8 +792,8 @@ int32 CFE_PSP_GetCFETextSegmentInfo(cpuaddr *PtrToCFESegment, uint32 *SizeOfCFES
}
else
{
*PtrToCFESegment = (cpuaddr)(&_init);
*SizeOfCFESegment = (uint32)(((cpuaddr)&_fini) - ((cpuaddr)&_init));
*PtrToCFESegment = (cpuaddr)(&__executable_star);
*SizeOfCFESegment = (uint32)(((cpuaddr)&__etext) - ((cpuaddr)&__executable_star));

return_code = CFE_PSP_SUCCESS;
}
Expand Down

0 comments on commit 7b4ddcb

Please sign in to comment.