summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-10-26 06:35:42 +0800
committerBernard Xiong <[email protected]>2018-10-26 06:35:42 +0800
commit484afe9d2cb07c9e552ff905328eecb7170e8c8a (patch)
treec5a3e180665c7d49167da6dbefb08dcf88fff0f3 /components
parentd23a65d54ec519b0b1bb844d3b2758b2253d4ff7 (diff)
[Kernel] Add 64bit CPU support.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 0e04b794e9..7f12671429 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -102,9 +102,9 @@ static long _list_thread(struct rt_list_node *list)
while (*ptr == '#')ptr ++;
rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %03d\n",
- thread->stack_size + ((rt_uint32_t)thread->stack_addr - (rt_uint32_t)thread->sp),
+ thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp),
thread->stack_size,
- (thread->stack_size - ((rt_uint32_t) ptr - (rt_uint32_t) thread->stack_addr)) * 100
+ (thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100
/ thread->stack_size,
thread->remaining_tick,
thread->error);