aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/FreeRTOS.c
diff options
context:
space:
mode:
authorMichel Jaouen <michel.jaouen@stericsson.com>2011-04-18 17:43:51 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-04-19 12:53:56 +0200
commit3c6af518b3f0a9fb0e4b515b9e6f0fc93d8b9493 (patch)
treec28891baa1231f728a1e7b8d075b302e3aaf82cb /src/rtos/FreeRTOS.c
parent32ede8fa21fecb68d404b25251ec29ce5e8e6505 (diff)
downloadriscv-openocd-3c6af518b3f0a9fb0e4b515b9e6f0fc93d8b9493.zip
riscv-openocd-3c6af518b3f0a9fb0e4b515b9e6f0fc93d8b9493.tar.gz
riscv-openocd-3c6af518b3f0a9fb0e4b515b9e6f0fc93d8b9493.tar.bz2
rtos : compilation error on amd64
Diffstat (limited to 'src/rtos/FreeRTOS.c')
-rw-r--r--src/rtos/FreeRTOS.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c
index 0007416..2aa4565 100644
--- a/src/rtos/FreeRTOS.c
+++ b/src/rtos/FreeRTOS.c
@@ -73,7 +73,7 @@ const struct FreeRTOS_params FreeRTOS_params_list[] =
static int FreeRTOS_detect_rtos( struct target* target );
static int FreeRTOS_create( struct target* target );
static int FreeRTOS_update_threads( struct rtos *rtos );
-static int FreeRTOS_get_thread_reg_list(struct rtos *rtos, long long thread_id, char ** hex_reg_list );
+static int FreeRTOS_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, char ** hex_reg_list );
static int FreeRTOS_get_symbol_list_to_lookup(symbol_table_elem_t * symbol_list[]);
@@ -253,7 +253,7 @@ static int FreeRTOS_update_threads( struct rtos *rtos )
}
// Read the number of threads in this list
- long long list_thread_count = 0;
+ int64_t list_thread_count = 0;
retval = target_read_buffer( rtos->target, list_of_lists[i], param->thread_count_width, (uint8_t *)&list_thread_count);
if ( retval != ERROR_OK )
{
@@ -267,8 +267,8 @@ static int FreeRTOS_update_threads( struct rtos *rtos )
}
// Read the location of first list item
- unsigned long long prev_list_elem_ptr = -1;
- unsigned long long list_elem_ptr = 0;
+ uint64_t prev_list_elem_ptr = -1;
+ uint64_t list_elem_ptr = 0;
retval = target_read_buffer( rtos->target, list_of_lists[i] + param->list_next_offset, param->pointer_width, (uint8_t *)&list_elem_ptr);
if ( retval != ERROR_OK )
{
@@ -345,11 +345,11 @@ static int FreeRTOS_update_threads( struct rtos *rtos )
return 0;
}
-static int FreeRTOS_get_thread_reg_list(struct rtos *rtos, long long thread_id, char ** hex_reg_list )
+static int FreeRTOS_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, char ** hex_reg_list )
{
int retval;
const struct FreeRTOS_params* param;
- long long stack_ptr = 0;
+ int64_t stack_ptr = 0;
*hex_reg_list = NULL;