内联汇编的一道简单的问题

ice_wind1213 2014-03-17 09:40:12
内核启动start_kernel中的一段内联汇编
asm volatile("stap %0" : "=m" (cpu_address));
其中的stap是什么意思, 查了汇编关键字也没有啊?
...全文
92 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ice_wind1213 2014-03-17
  • 打赏
  • 举报
回复
受教了~~ thank you!
JiMoKuangXiangQu 2014-03-17
  • 打赏
  • 举报
回复
查了下,是IBM Enterprise Systems Architecture/390芯片的指令。 可参考链接: http://www-947.ibm.com/support/entry/portal/search_results?sn=spe&q=ESA/390%20Principles%20of%20Operation&filter=language:en 下载手册:ESA/390 Principles of Operation (SA22-7201-08) STORE CPU ADDRESS STAP D(B) [S] ┌────────────────┬────┬────────────┐ │ 'B212' │ B │ D │ └────────────────┴────┴────────────┘ 16 2 31 The 16-bit unsigned binary integer by which this CPU is identified in a multiprocessing configuration is stored at the halfword location designated by the second-operand address. Special Conditions The operand must be designated on a halfword boundary; otherwise, a specification exception is recognized. Condition Code: The code remains unchanged. Program Exceptions: Access (store, operand 2) Privileged operation Specification

69,336

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧