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 10, 2024
1 parent f85abab commit e6ac087
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 @@ -741,8 +741,8 @@ int32 CFE_PSP_GetCFETextSegmentInfo(cpuaddr *PtrToCFESegment, uint32 *SizeOfCFES
}
else
{
*PtrToCFESegment = (cpuaddr)(&_init);
*SizeOfCFESegment = (uint32)(((cpuaddr)&_fini) - ((cpuaddr)&_init));
*PtrToCFESegment = (cpuaddr)(&__executable_start);
*SizeOfCFESegment = (uint32)(((cpuaddr)&__etext) - ((cpuaddr)&__executable_start));

return_code = CFE_PSP_SUCCESS;
}
Expand Down

0 comments on commit e6ac087

Please sign in to comment.