Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-arm
  • Repository
Switch branch/tag
  • ipipe-arm
  • arch
  • arm
  • include
  • asm
  • thread_info.h
Find file BlameHistoryPermalink
  • Andrey Ryabinin's avatar
    ARM: 8078/1: get rid of hardcoded assumptions about kernel stack size · 9a2b51b6
    Andrey Ryabinin authored Jun 18, 2014
    
    
    Changing kernel stack size on arm is not as simple as it should be:
    1) THREAD_SIZE macro doesn't respect PAGE_SIZE and THREAD_SIZE_ORDER
    2) stack size is hardcoded in get_thread_info macro
    
    This patch fixes it by calculating THREAD_SIZE and thread_info address
    taking into account PAGE_SIZE and THREAD_SIZE_ORDER.
    
    Now changing stack size becomes simply changing THREAD_SIZE_ORDER.
    
    Signed-off-by: default avatarAndrey Ryabinin <a.ryabinin@samsung.com>
    Acked-by: default avatarNicolas Pitre <nico@linaro.org>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    9a2b51b6

Imprint & Privacy Policy