mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-18 07:40:27 -05:00
fix: Add big-endian support to ARM_CRx_No_GIC port (#1355)
This change makes sure the Data endianness bit is set in the SPSR register when the program is being compiled for big-endian. Signed-off-by: Maxim De Clercq <maximdeclercq00@gmail.com>
This commit is contained in:
parent
d5c3c98ae4
commit
8a416d79c0
2 changed files with 6 additions and 1 deletions
1
.github/.cSpellWords.txt
vendored
1
.github/.cSpellWords.txt
vendored
|
|
@ -29,6 +29,7 @@ APIC
|
||||||
APROCFREQ
|
APROCFREQ
|
||||||
APSR
|
APSR
|
||||||
ARMCM
|
ARMCM
|
||||||
|
ARMEB
|
||||||
Armv
|
Armv
|
||||||
ARMVFP
|
ARMVFP
|
||||||
ASTRINGZ
|
ASTRINGZ
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,11 @@
|
||||||
#define portNO_FLOATING_POINT_CONTEXT ( ( StackType_t ) 0 )
|
#define portNO_FLOATING_POINT_CONTEXT ( ( StackType_t ) 0 )
|
||||||
|
|
||||||
/* Constants required to setup the initial task context. */
|
/* Constants required to setup the initial task context. */
|
||||||
#define portINITIAL_SPSR ( ( StackType_t ) 0x1f ) /* System mode, ARM mode, IRQ enabled FIQ enabled. */
|
#ifdef __ARMEB__
|
||||||
|
#define portINITIAL_SPSR ( ( StackType_t ) 0x21f ) /* System mode, ARM mode, IRQ enabled FIQ enabled, Big-endian. */
|
||||||
|
#else
|
||||||
|
#define portINITIAL_SPSR ( ( StackType_t ) 0x01f ) /* System mode, ARM mode, IRQ enabled FIQ enabled, Little-endian. */
|
||||||
|
#endif
|
||||||
#define portTHUMB_MODE_BIT ( ( StackType_t ) 0x20 )
|
#define portTHUMB_MODE_BIT ( ( StackType_t ) 0x20 )
|
||||||
#define portTHUMB_MODE_ADDRESS ( 0x01UL )
|
#define portTHUMB_MODE_ADDRESS ( 0x01UL )
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue