[問題] 請問 CPU mode 與 ring 的關係

看板ASM作者 (OK的啦~我都可以接受)時間15年前 (2009/03/14 01:20), 編輯推噓3(305)
留言8則, 4人參與, 最新討論串1/1
是這樣的, 小弟我之前在上組語的課程時 (課本是用Assembly Language for Intel-Based Computers 5ed, KIP R. IRVINE) 教授上課也只有提到protected mode, real-address mode, 和 system management mode(課本也只有提到這三種) 最近在閱讀有關於 virtualization 的 paper 時, 看到了 The x86 privilege levels are generally described as rings, and are numbered from zero (most privileged) to three (least privileged). 因為跟之前所學的無法連接,所以上網找了一些資料 在 ring 的 wiki 中 http://en.wikipedia.org/wiki/Ring_(computer_security) 提到的所謂的ring 好像是作業系統裡面權限的劃分 與 Intel CPU 的 mode 似乎沒有直接的對應 接著我去找了 IA-32 Intel Architecture Software Developer's Mannual Volumn 1 來看, 整篇文件 432 頁只有一個地方有提到 ring 0 (A numeric exception will trap to the kernel via the real INT 16 residing in the kernel at ring 0.) 所以我還是無法知道 ring 跟 CPU mode 之間的關係 OTZ 希望各位大大解答 <(__)> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.243.43

03/14 15:54, , 1F
找 Volumn 2 呢 ?___? XD
03/14 15:54, 1F

03/14 15:55, , 2F
cpu 進化到 pm 後就有分 ring0~3 了
03/14 15:55, 2F

03/14 17:39, , 3F
我看了volumn2 搜尋了 ring 0 還是沒有東西
03/14 17:39, 3F

03/14 17:40, , 4F
不好意思可以告訴我在哪邊嗎 <(__)>
03/14 17:40, 4F

03/14 21:03, , 5F
我手邊的檔怪怪的 有個 Volume 3 呀
03/14 21:03, 5F

03/14 21:03, , 6F
system programming guide
03/14 21:03, 6F

03/14 21:04, , 7F
有個 chap 叫 Protection 在裡頭吧
03/14 21:04, 7F

03/19 19:50, , 8F
事實上還有一個big real-mode XD
03/19 19:50, 8F
文章代碼(AID): #19kfNuf5 (ASM)