Changeset 3c6a6e8 in rtems for cpukit


Ignore:
Timestamp:
Nov 8, 2018, 2:14:32 PM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0e16fa45
Parents:
a043ff8
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/18 14:14:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:43)
Message:

i386: Remove use of proc_ptr

Update #3585.

Location:
cpukit/score/cpu/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/i386/cpu.c

    ra043ff8 r3c6a6e8  
    172172  _stack  = ((uint32_t)(_stack_base)) + (_size);
    173173  _stack &= ~ (CPU_STACK_ALIGNMENT - 1);
    174   _stack -= 2*sizeof(proc_ptr*); /* see above for why we need to do this */
    175   *((proc_ptr *)(_stack)) = (_entry_point);
     174  _stack -= 2*sizeof(void *); /* see above for why we need to do this */
     175  *((void (**)(void))(_stack)) = (_entry_point);
    176176  the_context->ebp     = (void *) 0;
    177177  the_context->esp     = (void *) _stack;
  • cpukit/score/cpu/i386/include/rtems/score/cpu.h

    ra043ff8 r3c6a6e8  
    540540void _CPU_Initialize(void);
    541541
    542 /*
    543  *  _CPU_ISR_install_raw_handler
    544  *
    545  *  This routine installs a "raw" interrupt handler directly into the
    546  *  processor's vector table.
    547  */
    548 
    549 void _CPU_ISR_install_raw_handler(
    550   uint32_t    vector,
    551   proc_ptr    new_handler,
    552   proc_ptr   *old_handler
    553 );
    554 
    555 /*
    556  *  _CPU_ISR_install_vector
    557  *
    558  *  This routine installs an interrupt vector.
    559  */
     542typedef void ( *CPU_ISR_handler )( void );
    560543
    561544void _CPU_ISR_install_vector(
    562   uint32_t    vector,
    563   proc_ptr    new_handler,
    564   proc_ptr  *old_handler
     545  uint32_t         vector,
     546  CPU_ISR_handler  new_handler,
     547  CPU_ISR_handler *old_handler
    565548);
    566549
Note: See TracChangeset for help on using the changeset viewer.