• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sorasyl
V2EX  ›  程序员

thread_create 之后 TPIDRRO_EL0 寄存器在 thread_resume 未被赋值

  •  
  •   sorasyl · Jan 15, 2024 · 1403 views
    This topic created in 860 days ago, the information mentioned may be changed or developed.

    我试了下直接修改 state 没办法调用 printf 或者 dlopen 之类使用 TLS 的函数 有没有办法回避这个问题

    M1 版本的 mac ,macos 13.1 (22C65)

    sorasyl
        1
    sorasyl  
    OP
       Jan 15, 2024
    试了下内联汇编,只有内核有权限给 TPIDRRO_EL0 赋值
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2851 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.