makes ULONG 64 bit on RV64
This commit is contained in:
@@ -66,9 +66,7 @@
|
||||
#define LWU lw
|
||||
#define LOG_REGBYTES 2
|
||||
#endif
|
||||
#define REGBYTES (1 << LOG_REGBYTES)
|
||||
#define TX_THREAD_STACK_END_OFFSET 2 * 4 + 2 * REGBYTES
|
||||
#define TX_THREAD_TIME_SLICE_OFFSET 3 * 4 + 3 * REGBYTES
|
||||
#define REGBYTES (1 << LOG_REGBYTES)
|
||||
|
||||
#else /*not __ASSEMBLER__ */
|
||||
|
||||
@@ -96,14 +94,11 @@ typedef unsigned char UCHAR;
|
||||
typedef int INT;
|
||||
typedef unsigned int UINT;
|
||||
typedef int LONG;
|
||||
typedef unsigned int ULONG; // ThreadX expects ULONG to be 32 bit
|
||||
typedef unsigned long ULONG;
|
||||
typedef unsigned long long ULONG64;
|
||||
typedef short SHORT;
|
||||
typedef unsigned short USHORT;
|
||||
#define ULONG64_DEFINED
|
||||
#define ALIGN_TYPE_DEFINED
|
||||
// Since ULONG is not actually unsigned long, it is to small to hold pointers for 64-bit systems
|
||||
#define ALIGN_TYPE unsigned long
|
||||
|
||||
/* Define the priority levels for ThreadX. Legal values range
|
||||
from 32 to 1024 and MUST be evenly divisible by 32. */
|
||||
|
||||
Reference in New Issue
Block a user