Ignore:
File:
1 edited

Legend:

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

    reb79d60 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 */
     
    203232#endif /* __ASM__ */
    204233
    205 #if defined (SUN4U)
    206 #include <arch/trap/sun4u/regwin.h>
    207 #elif defined (SUN4V)
    208 #include <arch/trap/sun4v/regwin.h>
    209234#endif
    210235
    211 #endif
    212 
    213236/** @}
    214237 */
Note: See TracChangeset for help on using the changeset viewer.