Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • arch
  • s390
  • kernel
  • entry.S
Find file BlameHistoryPermalink
  • Hendrik Brueckner's avatar
    s390/entry: add assembler macro to conveniently tests under mask · 83abeffb
    Hendrik Brueckner authored Oct 01, 2015
    
    
    Various functions in entry.S perform test-under-mask instructions
    to test for particular bits in memory.  Because test-under-mask uses
    a mask value of one byte, the mask value and the offset into the
    memory must be calculated manually.  This easily introduces errors
    and is hard to review and read.
    
    Introduce the TSTMSK assembler macro to specify a mask constant and
    let the macro calculate the offset and the byte mask to generate a
    test-under-mask instruction.  The benefit is that existing symbolic
    constants can now be used for tests.  Also the macro checks for
    zero mask values and mask values that consist of multiple bytes.
    
    Signed-off-by: default avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    83abeffb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7