Ignore:
Timestamp:
2018-03-26T12:35:30Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48974d6
Parents:
064e0fd
git-author:
Jiri Svoboda <jiri@…> (2018-03-25 18:34:49)
git-committer:
Jiri Svoboda <jiri@…> (2018-03-26 12:35:30)
Message:

Move assembler code out of .h files.

File:
1 edited

Legend:

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

    r064e0fd r5a01f7d  
    3535
    3636#ifdef __ASSEMBLER__
    37 
    38 /*
    39  * Saves the contents of the current window to the userspace window buffer.
    40  * Does not modify any register window registers, but updates pointer to the
    41  * top of the userspace window buffer.
    42  *
    43  * Parameters:
    44  *      \tmpreg1        global register to be used for scratching purposes
    45  *      \tmpreg2        global register to be used for scratching purposes
    46  */
    47 .macro SAVE_TO_USPACE_WBUF tmpreg1, tmpreg2
    48         set SCRATCHPAD_WBUF, \tmpreg2
    49         ldxa [\tmpreg2] ASI_SCRATCHPAD, \tmpreg1
    50         stx %l0, [\tmpreg1 + L0_OFFSET]
    51         stx %l1, [\tmpreg1 + L1_OFFSET]
    52         stx %l2, [\tmpreg1 + L2_OFFSET]
    53         stx %l3, [\tmpreg1 + L3_OFFSET]
    54         stx %l4, [\tmpreg1 + L4_OFFSET]
    55         stx %l5, [\tmpreg1 + L5_OFFSET]
    56         stx %l6, [\tmpreg1 + L6_OFFSET]
    57         stx %l7, [\tmpreg1 + L7_OFFSET]
    58         stx %i0, [\tmpreg1 + I0_OFFSET]
    59         stx %i1, [\tmpreg1 + I1_OFFSET]
    60         stx %i2, [\tmpreg1 + I2_OFFSET]
    61         stx %i3, [\tmpreg1 + I3_OFFSET]
    62         stx %i4, [\tmpreg1 + I4_OFFSET]
    63         stx %i5, [\tmpreg1 + I5_OFFSET]
    64         stx %i6, [\tmpreg1 + I6_OFFSET]
    65         stx %i7, [\tmpreg1 + I7_OFFSET]
    66         add \tmpreg1, STACK_WINDOW_SAVE_AREA_SIZE, \tmpreg1
    67         stxa \tmpreg1, [\tmpreg2] ASI_SCRATCHPAD
    68 .endm
    69 
    70 /*
    71  * Macro used to spill userspace window to userspace window buffer.
    72  * It is triggered from normal kernel code doing SAVE when
    73  * OTHERWIN>0 at (TL=0).
    74  */
    75 .macro SPILL_TO_USPACE_WINDOW_BUFFER
    76         SAVE_TO_USPACE_WBUF %g7, %g4
    77         saved
    78         retry
    79 .endm
    80 
     37#include <arch/trap/sun4v/regwin.S>
    8138#endif
    8239
Note: See TracChangeset for help on using the changeset viewer.