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

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

  •  
  •   sorasyl · Jan 15, 2024 · 1470 views
    This topic created in 888 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   ·   2478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:22 · PVG 18:22 · LAX 03:22 · JFK 06:22
    ♥ Do have faith in what you're doing.