Changeset 4ad5526 in rtems


Ignore:
Timestamp:
Apr 8, 2010, 4:37:34 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
a7f5c5f
Parents:
c2b0f2c
Message:

2010-04-08 Till Straumann <strauman@…>

  • cpu_asm.S, rtems/score/cpu.h: On uC5282, the thread restart needed to reload the frame pointer. As part of doing this, the code was moved from inline asm to the .S file.
Location:
cpukit/score/cpu/m68k
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/m68k/ChangeLog

    rc2b0f2c r4ad5526  
     12010-04-08      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * cpu_asm.S, rtems/score/cpu.h: On uC5282, the thread restart needed to
     4        reload the frame pointer. As part of doing this, the code was moved
     5        from inline asm to the .S file.
     6
    172010-03-27      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/score/cpu/m68k/cpu_asm.S

    rc2b0f2c r4ad5526  
    6262#endif
    6363
     64
    6465restore:  movml    a0@,d1-d7/a2-a7       | restore context
    6566          movw     d1,sr                 | restore status register
    6667          rts
    6768
     69        .global SYM (_CPU_Context_Restart_self)
     70.set    CONTEXT_ARG, 4                   | context arg
     71
     72#if defined( __mcoldfire__ ) && ( M68K_HAS_FPU == 1 )
     73/* XXX _CPU_Context_switch maintains FPU context -- do we have to restore
     74 *     that, too??
     75 */
     76#warning "_CPU_Context_Restart_self restoring FPU context not implemented"
     77#endif
     78SYM(_CPU_Context_Restart_self):
     79         moval    a7@(CONTEXT_ARG),a0
     80         bra      restore
    6881/*
    6982 * Floating point context save and restore.
  • cpukit/score/cpu/m68k/rtems/score/cpu.h

    rc2b0f2c r4ad5526  
    472472   } while ( 0 )
    473473#endif
    474 
    475 #define _CPU_Context_Restart_self( _the_context ) \
    476   { asm volatile( "movew %0,%%sr ; " \
    477                   "moval %1,%%a7 ; " \
    478                   "rts"  \
    479         : "=d" ((_the_context)->sr), "=d" ((_the_context)->a7_msp) \
    480         : "0" ((_the_context)->sr), "1" ((_the_context)->a7_msp) ); \
    481   }
    482474
    483475/* end of Context handler macros */
     
    701693);
    702694
     695void _CPU_Context_Restart_self(
     696  Context_Control  *the_context
     697);
     698
    703699/*
    704700 *  _CPU_Context_save_fp
Note: See TracChangeset for help on using the changeset viewer.