|
怎么控制线程占用的cpu
没事睡一下,sleep(0)就可以了 |
|
求助:除零异常与int 0的区别?
Interrupt Descriptor Table Base: 8003F400 Limit: 000007FF Selector - Segment Selector for destination code segment Offset - Offset to procedure entry point DPL ?Descriptor privilege level P ?Segment present D - Size of gate: 1 = 32 bits; 0 = 16 bits D -------------------------------------------------------------------------------------------------------------- Int. Sel.:Offset DPL P D Descriptor Type Description -------------------------------------------------------------------------------------------------------------- 0000 0008:80542420 0 P 32 bits Interrupt Gate Fault Divide Error 0001 0008:8054259C 0 P 32 bits Interrupt Gate Fault/Trap Debug 0002 0058:0000112E 0 P Task Gate Interrupt NMI Interrupt 0003 0008:805429B0 3 P 32 bits Interrupt Gate Trap Breakpoint 0004 0008:80542B30 3 P 32 bits Interrupt Gate Trap Overflow 0005 0008:80542C90 0 P 32 bits Interrupt Gate Fault BOUND Range Exceeded 0006 0008:80542E04 0 P 32 bits Interrupt Gate Fault Invalid Opcode (Undefined Opcode). Was introduced in the Pentium Pro processor 0007 0008:8054347C 0 P 32 bits Interrupt Gate Fault Device Not Available (No Math Coprocessor) 0008 0050:00001188 0 P Task Gate Abort Double Fault 0009 0008:80543880 0 P 32 bits Interrupt Gate Fault Coprocessor Segment Overrun (reserved). IA-32 processors after the Intel386 processor do not generate this exception. 000A 0008:805439A0 0 P 32 bits Interrupt Gate Fault Invalid TSS 000B 0008:80543AE0 0 P 32 bits Interrupt Gate Fault Segment Not Present 000C 0008:80543D40 0 P 32 bits Interrupt Gate Fault Stack-Segment Fault 000D 0008:8054402C 0 P 32 bits Interrupt Gate Fault General Protection 000E 0008:80544740 0 P 32 bits Interrupt Gate Fault Page Fault 000F 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0010 0008:80544B98 0 P 32 bits Interrupt Gate Fault x87 FPU Floating-Point Error (Math Fault) 0011 0008:80544CD4 0 P 32 bits Interrupt Gate Fault Alignment Check. Was introduced in the Intel486 processor. 0012 00A0:80544A78 0 P Task Gate Abort Machine Check. Was introduced in the Pentium processor and enhanced in the P6 family processors. 0013 0008:80544E3C 0 P 32 bits Interrupt Gate Fault SIMD Floating-Point Exception. Was introduced in the Pentium III processor. 0014 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0015 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0016 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0017 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0018 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0019 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001A 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001B 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001C 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001D 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001E 0008:80544A78 0 P 32 bits Interrupt Gate Intel reserved. Do not use 001F 0008:806E510C 0 P 32 bits Interrupt Gate Intel reserved. Do not use 0020 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0021 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0022 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0023 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0024 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0025 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0026 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0027 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0028 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 0029 0008:00000000 0 NP 16 bits User Defined (Non-reserved) Interrupts 002A 0008:80541C4E 3 P 32 bits Interrupt Gate User Defined (Non-reserved) Interrupts 002B 0008:80541D50 3 P 32 bits Interrupt Gate User Defined (Non-reserved) Interrupts 002C 0008:80541F00 3 P 32 bits Interrupt Gate User Defined (Non-reserved) Interrupts 002D 0008:8054288C 3 P 32 bits Interrupt Gate User Defined (Non-reserved) Interrupts 002E 0008:805416D1 3 P 32 bits Interrupt Gate User Defined (Non-reserved) Interrupts 恩楼上正解…… |
|
求助:除零异常与int 0的区别?
从栈结构上看Int指令不会有出错码,而异常可能有。另外任何的Int出来后都停留在下一条指令(其实那条指令已经执行了,好像有个反单步调试确实是跳过一个字节) |
|
[求助]关于 IDT 的一些问题
都会用到SSDT和SHADOW,XP也可以用int 2E |
|
关于LDTR局部描述符表寄存器
LLDT - Load Local Descriptor Table Register 0F 00 /2 LLDT r/m16 Load segment selector r/m16 into LDTR Description Loads the source operand into the segment selector field of the local descriptor table register (LDTR). The source operand (a general-purpose register or a memory location) contains a segment selector that points to a local descriptor table (LDT). After the segment selector is loaded in the LDTR, the processor uses to segment selector to locate the segment descriptor for the LDT in the global descriptor table (GDT). It then loads the segment limit and base address for the LDT from the segment descriptor into the LDTR. The segment registers DS, ES, SS, FS, GS, and CS are not affected by this instruction, nor is the LDTR field in the task state segment (TSS) for the current task. If the source operand is 0, the LDTR is marked invalid and all references to descriptors in the LDT (except by the LAR, VERR, VERW or LSL instructions) cause a general protection excep-tion (#GP). The operand-size attribute has no effect on this instruction. The LLDT instruction is provided for use in operating-system software; it should not be used in application programs. Also, this instruction can only be executed in protected mode. |
|
[讨论][讨论]od能不能下万能断点像softice一样
没有延迟加载啊 |
|
[求助]请教关于8259A的问题
http://docs.huihoo.com/gnu_linux/own_os/interrupt-8259_5.htm http://www.wizbrother.com/api/?p=ca&l=2052&v=4.x&c=viewarticle&a=3c10805ff079c548a7b46147825abd15834&random=1268647700& |
|
[分享]虚拟机的设计与实现:C/C++
十分感谢………… |
|
[分享]虚拟机的设计与实现:C/C++
楼上源码附件好像失效了 |
|
想要输出hell0 world却不能!
把start写在最开头看看 |
|
关于od的使用
好像不可以吧,只能用run跟踪了 |
|
栈区以及常量区
str1,str2,str13本身都是局部变量,所以都在栈中,"pretty","efg"都是字符串常量,编译器把它们放到了rdata段,还有那个字符数组特别简单,编译器直接把它们放到指令中了 text:0040B7B4 mov [ebp+var_10], 61h .text:0040B7B8 mov [ebp+var_F], 62h .text:0040B7BC mov [ebp+var_E], 63h 如果编译器优化的好的话,其实“efg”也可以放在指令中,你可以试试最高级别的优化选项。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值