[rtems commit] bsps: Fix integer to/from pointer
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:53:16 UTC 2017
Module: rtems
Branch: master
Commit: ec25c6ef74c82f40af72375070997cbd112b4ae8
Changeset: http://git.rtems.org/rtems/commit/?id=ec25c6ef74c82f40af72375070997cbd112b4ae8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 10 14:23:02 2017 +0200
bsps: Fix integer to/from pointer
Update #3082.
---
c/src/lib/libbsp/shared/src/irq-generic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/shared/src/irq-generic.c b/c/src/lib/libbsp/shared/src/irq-generic.c
index 13bbccb..99033dc 100755
--- a/c/src/lib/libbsp/shared/src/irq-generic.c
+++ b/c/src/lib/libbsp/shared/src/irq-generic.c
@@ -45,7 +45,7 @@ static uint8_t bsp_interrupt_handler_unique_table
static void bsp_interrupt_handler_empty(void *arg)
{
- rtems_vector_number vector = (rtems_vector_number) arg;
+ rtems_vector_number vector = (rtems_vector_number) (uintptr_t) arg;
bsp_interrupt_handler_default(vector);
}
@@ -102,7 +102,7 @@ static inline void bsp_interrupt_clear_handler_entry(
{
e->handler = bsp_interrupt_handler_empty;
bsp_interrupt_fence(ATOMIC_ORDER_RELEASE);
- e->arg = (void *) vector;
+ e->arg = (void *) (uintptr_t) vector;
e->info = NULL;
e->next = NULL;
}
More information about the vc
mailing list