作者nfsnfs (Busy)
看板LinuxDev
標題[問題] 進 system call 的兩種方法
時間Wed Oct 3 00:07:34 2007
進 system call 的方法有 int 80h 和 sysenter 兩種,
那請問 sysenter 和 int 80h 在 Linux 的實做上面有什麼差異呢?
一進去的時候 push 到 kernel stack 的 regisers 有差嗎?
先感謝各位了~
--
http://nfsnfs.pixnet.net 灰熊。紅襪。阿森納。
http://nfstry.blogspot.com 海邊。天空
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.53.129
1F:推 buganini:nfsnfs!! m(_ _)m 10/03 16:11
2F:推 nfsnfs:...=_="" 我還以為有人回答了 XD 10/03 18:30
3F:推 cyu021:印象中int 80h是以前的版本用的方法,新一點的都用sysenter 10/08 01:32
4F:→ cyu021:根據Understanding the linux kernel的說法 10/08 01:33
5F:→ cyu021:sysenter比較快,當兵沒多久腦袋就空空,因此細節請看code 10/08 01:34
6F:推 nfsnfs:看了 code 還是看不懂 XD Understanding the Linux kernel 10/08 13:14
7F:→ nfsnfs:大部分都討論 int 80h 的部份 :Q~ 10/08 13:14