removes convoluted generation of offsets
Ass ULONG is now 8 bytes on RV64, the SMP offset is the only one left, harcoding it as a magic number is simpler
This commit is contained in:
@@ -57,26 +57,26 @@
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#if __riscv_xlen == 64
|
||||
#define SLL32 sllw
|
||||
#define STORE sd
|
||||
#define LOAD ld
|
||||
#define LWU lwu
|
||||
#define AMOSWAP_AQ amoswap.d.aq
|
||||
#define AMOSWAP_RL amoswap.d.rl
|
||||
#define LOG_REGBYTES 3
|
||||
#define SLL32 sllw
|
||||
#define STORE sd
|
||||
#define LOAD ld
|
||||
#define LWU lwu
|
||||
#define AMOSWAP_AQ amoswap.d.aq
|
||||
#define AMOSWAP_RL amoswap.d.rl
|
||||
#define LOG_REGBYTES 3
|
||||
#define TX_THREAD_SMP_LOCK_READY_BIT_OFFSET 312 // This changes if thread or timer internal extensions are used
|
||||
#else
|
||||
#define SLL32 sll
|
||||
#define STORE sw
|
||||
#define LOAD lw
|
||||
#define LWU lw
|
||||
#define AMOSWAP_AQ amoswap.w.aq
|
||||
#define AMOSWAP_RL amoswap.w.rl
|
||||
#define LOG_REGBYTES 2
|
||||
#define SLL32 sll
|
||||
#define STORE sw
|
||||
#define LOAD lw
|
||||
#define LWU lw
|
||||
#define AMOSWAP_AQ amoswap.w.aq
|
||||
#define AMOSWAP_RL amoswap.w.rl
|
||||
#define LOG_REGBYTES 2
|
||||
#define TX_THREAD_SMP_LOCK_READY_BIT_OFFSET 168 // This changes if thread or timer internal extensions are used
|
||||
#endif
|
||||
#define REGBYTES (1 << LOG_REGBYTES)
|
||||
|
||||
#include "tx_asm_offsets.inc"
|
||||
|
||||
#else /*not __ASSEMBLER__ */
|
||||
|
||||
/************* Define ThreadX SMP constants. *************/
|
||||
|
||||
Reference in New Issue
Block a user