From 476270c2ab91169a8e731562b0e68b86602e0d77 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 4 Nov 2014 10:51:23 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7475 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/SIMIA32/chcore.c | 2 +- os/rt/ports/SIMIA32/chcore.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'os/rt/ports') diff --git a/os/rt/ports/SIMIA32/chcore.c b/os/rt/ports/SIMIA32/chcore.c index b4357dfc7..244e4c30f 100644 --- a/os/rt/ports/SIMIA32/chcore.c +++ b/os/rt/ports/SIMIA32/chcore.c @@ -58,7 +58,7 @@ * @param ntp the thread to be switched in */ __attribute__((used)) -static void __dummy(Thread *ntp, Thread *otp) { +static void __dummy(thread_t *ntp, thread_t *otp) { (void)ntp; (void)otp; asm volatile ( diff --git a/os/rt/ports/SIMIA32/chcore.h b/os/rt/ports/SIMIA32/chcore.h index 9c8cd2587..6174f93eb 100644 --- a/os/rt/ports/SIMIA32/chcore.h +++ b/os/rt/ports/SIMIA32/chcore.h @@ -148,7 +148,7 @@ struct port_intctx { * at context switch time. */ struct context { - struct intctx volatile *esp; + struct port_intctx *esp; }; /*===========================================================================*/ @@ -177,11 +177,11 @@ struct context { APUSH(esp, pf); \ APUSH(esp, 0); \ esp -= sizeof(struct port_intctx); \ - ((struct port_intctx *)esp)->eip = _port_thread_start; \ + ((struct port_intctx *)esp)->eip = (void *)_port_thread_start; \ ((struct port_intctx *)esp)->ebx = 0; \ ((struct port_intctx *)esp)->edi = 0; \ ((struct port_intctx *)esp)->esi = 0; \ - ((struct port_intctx *)esp)->ebp = savebp; \ + ((struct port_intctx *)esp)->ebp = (void *)savebp; \ (tp)->p_ctx.esp = (struct port_intctx *)esp; \ } -- cgit v1.2.3