首页
社区
课程
招聘
[原创]Windows相关保护模式分析笔记(1)
发表于: 2011-8-1 02:00 11770

[原创]Windows相关保护模式分析笔记(1)

2011-8-1 02:00
11770
<bochs:1> c
<bochs:2> info gdt 
Global Descriptor Table (base=0x000000000003f000, limit=1023):           (GDTR信息)
GDT[0x00]=??? descriptor hi=0x00000000, lo=0x00000000              (GDT表第一项不用,每位设置为0)
GDT[0x01]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Read, 32-bit         
GDT[0x02]=Data segment, base=0x00000000, limit=0xffffffff, Read/Write, 
GDT[0x03]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Rea 
GDT[0x04]=Data segment, base=0x00000000, limit=0xffffffff, Read/Write 
GDT[0x05]=32-Bit TSS (Busy) at 0x00024460, length 0x00077 
GDT[0x06]=Data segment, base=0x00000000, limit=0x00001fff, Read/Write 
GDT[0x07]=Data segment, base=0x00000000, limit=0x00000fff, Read/Write, 
GDT[0x08]=Data segment, base=0x00000400, limit=0x0000ffff, Read/Write 
GDT[0x09]=??? descriptor hi=0x00000000, lo=0x00000000 
GDT[0x0a]=32-Bit TSS (Available) at 0x00023b7e, length 0x0006f 
GDT[0x0b]=Code segment, base=0x00020000, limit=0x0000ffff, Execute/Read, 16-bit 
<bochs:3> info idt 
Interrupt Descriptor Table (base=0x000000008003f400, limit=2047              (IDTR 信息)
IDT[0x00]=32-Bit Interrupt Gate target=0x0008:0x80408bff, DPL=0 
IDT[0x01]=32-Bit Interrupt Gate target=0x0008:0x80408d7c, DPL=0
<bochs:4> info gdt 0 2 
Global Descriptor Table (base=0x000000000003f000, limit=1023): 
GDT[0x00]=??? descriptor hi=0x00000000, lo=0x00000000 
GDT[0x01]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Read, Accesse 
GDT[0x02]=Data segment, base=0x00000000, limit=0xffffffff, Read/Write, Accessed 
GDT[0x03]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Read, 32-bit
kd> r gdtr
gdtr=8003f000                     (注意这时已经打开分页机制,基地址是虚拟地址)
kd> r gdtl
gdtl=000003ff

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

上传的附件:
收藏
免费 7
支持
分享
最新回复 (3)
雪    币: 191
活跃值: (345)
能力值: ( LV9,RANK:450 )
在线值:
发帖
回帖
粉丝
2
沙发了 MARK 一下.
2011-8-1 03:19
0
雪    币: 241
活跃值: (67)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
MARK 一下.
2011-8-1 09:00
0
雪    币: 136
活跃值: (105)
能力值: ( LV9,RANK:140 )
在线值:
发帖
回帖
粉丝
4
mark 一下
2011-8-1 09:10
0
游客
登录 | 注册 方可回帖
返回
//