about x86 protected mode

well,we only find 2 byte display of segment register in OD, but in fact, the segment register size is 96bit at least. and the protected mode is on segment registers.

there are some data structures very importent:

gdt,idt

gdt→segment descriptor(tss task state segment use it)

idt→ gate descriptor( operating system code use dpl in this to judge it have the right privilege or not)

there are too many rules to make it up. but they r not about the functions, so it is hard to understand, but interesting.

if you just reverse the operating system, you cant understand it. meanwhile you have to know how the cpu works.

so, segmentation and paging is the spirit of the protected mode.

因为看了一些英文资料,由于惯性吧,用英文表达了一段自己的思考。

相对X86,ARM的寻址方式更像是实模式,至于多任务下的数据保护,由OS来完成。

arm暂时先不管了,到做arm沙箱的时候再研究吧。

to be continue......

猜你喜欢

转载自my.oschina.net/u/1777508/blog/1821374