Changeset 4fea054c in rtems


Ignore:
Timestamp:
11/06/18 18:34:15 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
a9767a07
Parents:
ff081aee
git-author:
Sebastian Huber <sebastian.huber@…> (11/06/18 18:34:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/08/18 07:09:25)
Message:

score: Remove _ISR_Dispatch()

This function was only used on some m68k variants. On these m68k
variants there is no need to use a global symbol. Use a local label
instead.

Remove _ISR_Dispatch() from the architecture-independent layer.

Files:
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • bsps/mips/shared/irq/exception.S

    rff081aee r4fea054c  
    373373  /*
    374374   *  prepare to get out of interrupt
    375    *  return from interrupt  (maybe to _ISR_Dispatch)
     375   *  return from interrupt
    376376   *
    377377   *  LABEL "exit interrupt (simple case):"
  • cpukit/Makefile.am

    rff081aee r4fea054c  
    16001600librtemscpu_a_SOURCES += score/cpu/m32c/context_init.c
    16011601librtemscpu_a_SOURCES += score/cpu/m32c/context_switch.S
    1602 librtemscpu_a_SOURCES += score/cpu/m32c/cpu_asm.c
    16031602librtemscpu_a_SOURCES += score/cpu/m32c/cpu.c
    16041603librtemscpu_a_SOURCES += score/cpu/m32c/m32c-exception-frame-print.c
  • cpukit/include/rtems/score/isr.h

    rff081aee r4fea054c  
    147147
    148148/**
    149  *  @brief ISR wrapper for thread dispatcher.
    150  *
    151  *  This routine provides a wrapper so that the routine
    152  *  @ref _Thread_Dispatch can be invoked when a reschedule is necessary
    153  *  at the end of the outermost interrupt service routine.  This
    154  *  wrapper is necessary to establish the processor context needed
    155  *  by _Thread_Dispatch and to save the processor context which is
    156  *  corrupted by _Thread_Dispatch.  This context typically consists
    157  *  of registers which are not preserved across routine invocations.
    158  *
    159  *  @note  Typically mplemented in assembly language.
    160  */
    161 void _ISR_Dispatch( void );
    162 
    163 /**
    164149 *  @brief Checks if an ISR in progress.
    165150 *
  • cpukit/score/cpu/m68k/cpu_asm.S

    rff081aee r4fea054c  
    325325        movec   msp,a0                   | a0 = master stack pointer
    326326        movew   #0,a0@-                  | push format word
    327         movel   #SYM(_ISR_Dispatch),a0@- | push return addr
     327        movel   #thread_dispatch,a0@-    | push return addr
    328328        movew   a0@(6),a0@-              | push saved sr
    329329        movec   a0,msp                   | set master stack pointer
     
    345345                                         |   OR _Isr_dispatch
    346346
    347 /*void _ISR_Dispatch()
    348  *
     347#if ( M68K_HAS_SEPARATE_STACKS == 1 )
     348/*
    349349 *  Entry point from the outermost interrupt service routine exit.
    350350 *  The current stack is the supervisor mode stack if this processor
     
    358358 */
    359359
    360         .global SYM (_ISR_Dispatch)
    361 SYM (_ISR_Dispatch):
     360thread_dispatch:
    362361#if ( !defined(__mcoldfire__) )
    363362        movml   d0-d1/a0-a1,a7@-
     
    376375#endif /* M68K_HAS_VBR */
    377376        rte
     377#endif /* M68K_HAS_SEPARATE_STACKS */
  • cpukit/score/cpu/mips/cpu_asm.S

    rff081aee r4fea054c  
    10501050  /*
    10511051   *  prepare to get out of interrupt
    1052    *  return from interrupt  (maybe to _ISR_Dispatch)
     1052   *  return from interrupt
    10531053   *
    10541054   *  LABEL "exit interrupt (simple case):"
  • cpukit/score/cpu/moxie/cpu_asm.S

    rff081aee r4fea054c  
    8888
    8989
    90 /*
    91         Called from ISR_Handler as a way of ending IRQ
    92         but allowing dispatch to another task.
    93         Must use RTE as CCR is still on stack but IRQ has been serviced.
    94         CCR and PC occupy same word so rte can be used.
    95         now using task stack
    96 */
    97 
    98         .align 2
    99         .global SYM(_ISR_Dispatch)
    100 
    101 SYM(_ISR_Dispatch):
    102         brk
    103 
    104 
    10590        .align 2
    10691        .global SYM(_CPU_Context_save_fp)
  • cpukit/score/cpu/no_cpu/cpu_asm.c

    rff081aee r4fea054c  
    172172   *
    173173   *  if ( _Thread_Dispatch_necessary ) {
    174    *    call _Thread_Dispatch() or prepare to return to _ISR_Dispatch
     174   *    call _Thread_Dispatch() or prepare to return from interrupt
    175175   *    prepare to get out of interrupt
    176    *    return from interrupt  (maybe to _ISR_Dispatch)
     176   *    return from interrupt
    177177   *
    178178   *  LABEL "exit interrupt (simple case):
  • cpukit/score/cpu/sparc/cpu.c

    rff081aee r4fea054c  
    413413  /*
    414414   *  Since THIS thread is being created, there is no way that THIS
    415    *  thread can have an _ISR_Dispatch stack frame on its stack.
    416    */
    417     the_context->isr_dispatch_disable = 0;
     415   *  thread can have an interrupt stack frame on its stack.
     416   */
     417  the_context->isr_dispatch_disable = 0;
    418418
    419419  if ( tls_area != NULL ) {
  • cpukit/score/cpu/sparc64/cpu.c

    rff081aee r4fea054c  
    6161   *  Since no tasks have been created yet and no interrupts have occurred,
    6262   *  there is no way that the currently executing thread can have an
    63    *  _ISR_Dispatch stack frame on its stack.
     63   *  interrupt stack frame on its stack.
    6464   */
    6565  _CPU_ISR_Dispatch_disable = 0;
     
    101101  /*
    102102   *  Since THIS thread is being created, there is no way that THIS
    103    *  thread can have an _ISR_Dispatch stack frame on its stack.
     103   *  thread can have an interrupt stack frame on its stack.
    104104   */
    105105    the_context->isr_dispatch_disable = 0;
  • cpukit/score/cpu/sparc64/include/rtems/score/cpu.h

    rff081aee r4fea054c  
    488488/*
    489489 *  This flag is context switched with each thread.  It indicates
    490  *  that THIS thread has an _ISR_Dispatch stack frame on its stack.
     490 *  that THIS thread has an interrupt stack frame on its stack.
    491491 *  By using this flag, we can avoid nesting more interrupt dispatching
    492492 *  attempts on a previously interrupted thread's stack.
  • cpukit/score/cpu/sparc64/interrupt.S

    rff081aee r4fea054c  
    351351     *  Invoke interrupt dispatcher.
    352352     */
    353 PUBLIC(_ISR_Dispatch)
    354   SYM(_ISR_Dispatch):
     353
    355354    ! Set ISR dispatch nesting prevention flag
    356355      mov      1, %o1
Note: See TracChangeset for help on using the changeset viewer.