summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/i386/cpu.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-08 15:14:32 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-12 13:25:43 +0100
commit3c6a6e80ecc92f0c5bd1dacfd3b833d7b7240f0b (patch)
tree3a8e1289ca22d806e52f2be8af306a897ddd4cb9 /cpukit/score/cpu/i386/cpu.c
parentepiphany: Remove use of proc_ptr (diff)
downloadrtems-3c6a6e80ecc92f0c5bd1dacfd3b833d7b7240f0b.tar.bz2
i386: Remove use of proc_ptr
Update #3585.
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/i386/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c
index 72b99c0d80..a90eb7a288 100644
--- a/cpukit/score/cpu/i386/cpu.c
+++ b/cpukit/score/cpu/i386/cpu.c
@@ -171,8 +171,8 @@ void _CPU_Context_Initialize(
_stack = ((uint32_t)(_stack_base)) + (_size);
_stack &= ~ (CPU_STACK_ALIGNMENT - 1);
- _stack -= 2*sizeof(proc_ptr*); /* see above for why we need to do this */
- *((proc_ptr *)(_stack)) = (_entry_point);
+ _stack -= 2*sizeof(void *); /* see above for why we need to do this */
+ *((void (**)(void))(_stack)) = (_entry_point);
the_context->ebp = (void *) 0;
the_context->esp = (void *) _stack;