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
  • riscv
  • kernel
  • process.c
Find file BlameHistoryPermalink
  • Clément Léger's avatar
    riscv: add support for PR_SET_UNALIGN and PR_GET_UNALIGN · 9f23a5d2
    Clément Léger authored Oct 04, 2023
    
    
    Now that trap support is ready to handle misalignment errors in S-mode,
    allow the user to control the behavior of misaligned accesses using
    prctl(PR_SET_UNALIGN). Add an align_ctl flag in thread_struct which
    will be used to determine if we should SIGBUS the process or not on
    such fault.
    
    Signed-off-by: default avatarClément Léger <cleger@rivosinc.com>
    Reviewed-by: default avatarBjörn Töpel <bjorn@rivosinc.com>
    Link: https://lore.kernel.org/r/20231004151405.521596-9-cleger@rivosinc.com
    
    
    Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    9f23a5d2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7