Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/trap/regwin.h

    r68acf21 rd364e94  
    131131
    132132/*
     133 * Macro used to spill userspace window to userspace window buffer.
     134 * It can be either triggered from preemptible_handler doing SAVE
     135 * at (TL=1) or from normal kernel code doing SAVE when OTHERWIN>0
     136 * at (TL=0).
     137 */
     138.macro SPILL_TO_USPACE_WINDOW_BUFFER
     139        stx %l0, [%g7 + L0_OFFSET]     
     140        stx %l1, [%g7 + L1_OFFSET]
     141        stx %l2, [%g7 + L2_OFFSET]
     142        stx %l3, [%g7 + L3_OFFSET]
     143        stx %l4, [%g7 + L4_OFFSET]
     144        stx %l5, [%g7 + L5_OFFSET]
     145        stx %l6, [%g7 + L6_OFFSET]
     146        stx %l7, [%g7 + L7_OFFSET]
     147        stx %i0, [%g7 + I0_OFFSET]
     148        stx %i1, [%g7 + I1_OFFSET]
     149        stx %i2, [%g7 + I2_OFFSET]
     150        stx %i3, [%g7 + I3_OFFSET]
     151        stx %i4, [%g7 + I4_OFFSET]
     152        stx %i5, [%g7 + I5_OFFSET]
     153        stx %i6, [%g7 + I6_OFFSET]
     154        stx %i7, [%g7 + I7_OFFSET]
     155        add %g7, STACK_WINDOW_SAVE_AREA_SIZE, %g7
     156        saved
     157        retry
     158.endm
     159
     160
     161/*
    133162 * Macro used by the nucleus and the primary context 0 during normal fills.
    134163 */
     
    183212        add %l0, 1, %l0
    184213        wrpr %l0, 0, %cleanwin
    185 #if defined(SUN4U)
    186214        mov %r0, %l0
    187215        mov %r0, %l1
     
    200228        mov %r0, %o6
    201229        mov %r0, %o7
     230        retry
     231.endm
     232#endif /* __ASM__ */
     233
    202234#endif
    203         retry
    204 .endm
    205 #endif /* __ASM__ */
    206 
    207 #if defined(SUN4U)
    208 #include <arch/trap/sun4u/regwin.h>
    209 #elif defined(SUN4V)
    210 #include <arch/trap/sun4v/regwin.h>
    211 #endif
    212 
    213 #endif
    214235
    215236/** @}
Note: See TracChangeset for help on using the changeset viewer.