Skip to content

Commit a7961fe

Browse files
committed
Fix VFP build failure in Cortex-A tx_thread_schedule.S
When TX_ENABLE_VFP_SUPPORT is defined, the build fails due to missing IRQ_MASK and FIQ_MASK symbols in the restore logic. This adds the local definitions (0x80 and 0x40) to tx_thread_schedule.S to match tx_thread_interrupt_restore.S, enabling successful compilation on GNU and AC6 Cortex-A ports.
1 parent 44fadf7 commit a7961fe

File tree

14 files changed

+112
-0
lines changed

14 files changed

+112
-0
lines changed

ports/cortex_a12/ac6/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a12/gnu/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a15/ac6/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a15/gnu/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a17/ac6/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a17/gnu/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a5/ac6/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a5/gnu/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a7/ac6/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

ports/cortex_a7/gnu/src/tx_thread_schedule.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
#define IRQ_MODE 0x12 // IRQ mode
4040
#define SVC_MODE 0x13 // SVC mode
4141

42+
#ifdef TX_ENABLE_VFP_SUPPORT
43+
IRQ_MASK = 0x080
44+
#endif
45+
46+
#ifdef TX_ENABLE_FIQ_SUPPORT
47+
FIQ_MASK = 0x040
48+
#endif
49+
4250
/**************************************************************************/
4351
/* */
4452
/* FUNCTION RELEASE */

0 commit comments

Comments
 (0)