{"id":821,"date":"2012-06-30T12:42:06","date_gmt":"2012-06-30T04:42:06","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=821"},"modified":"2012-06-30T12:42:06","modified_gmt":"2012-06-30T04:42:06","slug":"x86%e5%b9%b3%e5%8f%b0%e7%9a%84%e4%b8%ad%e6%96%ad%e5%92%8c%e5%bc%82%e5%b8%b8","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=821","title":{"rendered":"X86\u5e73\u53f0\u7684\u4e2d\u65ad\u548c\u5f02\u5e38"},"content":{"rendered":"<p>\u82f1\u7279\u5c14\u7684\u5b98\u65b9\u6587\u6863\u5982\u4e0b\u5b9a\u4e49x86\u5e73\u53f0\u4e0b\u7684\u4e2d\u65ad\u548c\u5f02\u5e38\uff1a<\/p>\n<h2>\u4e2d\u65ad\uff1a<\/h2>\n<ul>\n<li>\u53ef\u5c4f\u5f0a\u4e2d\u65ad(Maskable Interrupts)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6240\u6709\u7531I\/O\u8bbe\u5907\u53d1\u51fa\u7684IRQ(Interupt Requests)\u90fd\u662f\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u3002\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u53ef\u4ee5\u6709\u4e24\u4e2a\u72b6\u6001\uff1a\u5c4f\u5f0a\u548c\u672a\u5c4f\u5f0a\u3002\u5c4f\u5f0a\u72b6\u6001\u7684\u4e2d\u65ad\u4f1a\u88ab\u4e2d\u65ad\u63a7\u5236\u786c\u4ef6\u5ffd\u7565\u3002<\/p>\n<ul>\n<li>\u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad(Nonmaskable Interrupts)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53ea\u6709\u4e00\u4e9b\u5173\u952e\u7684\u4e8b\u4ef6\uff08\u5982\u786c\u4ef6\u5931\u8d25\uff09\u4f1a\u53d1\u51fa\u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u3002\u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u603b\u662f\u53ef\u4ee5\u88abCPU\u8bc6\u522b\u5230\u3002<\/p>\n<h2>&nbsp;<\/h2>\n<h2>\u5f02\u5e38\uff1a<\/h2>\n<ul>\n<li>\u5904\u7406\u5668\u53ef\u4fa6\u6d4b\u5f02\u5e38(Processor-detected Exceptions)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CPU\u6267\u884c\u6307\u4ee4\u65f6\u4fa6\u6d4b\u5230\u4e0d\u6b63\u5e38\u7684\u72b6\u6001(anomalous condition)\u65f6\u4ea7\u751f\u8fd9\u4e2a\u5f02\u5e38\u3002\u8fd9\u79cd\u5f02\u5e38\u53c8\u6839\u636e\u5b58\u5728\u5185\u6838\u6808\u4e0a\u7684EIP\u5bc4\u5b58\u5668\u7684\u503c\u88ab\u5212\u5206\u4e3a\u4e09\u7ec4\u3002<\/p>\n<ul>\n<li>\u9519\u8bef(Faults)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53d1\u751f\u9519\u8bef\u65f6\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u88ab\u7ea0\u6b63\u3002\u7ea0\u6b63\u4ee5\u540e\uff0c\u7a0b\u5e8f\u7ee7\u7eed\u8fd0\u884c\uff0c\u4e0d\u4f1a\u635f\u5931\u8fde\u7eed\u6027\u3002\u4fdd\u5b58\u4e0b\u7684EIP\u5bc4\u5b58\u5668\u7684\u503c\u5c31\u662f\u4ea7\u751f\u8fd9\u4e2a\u9519\u8bef\u7684\u6307\u4ee4\uff0c\u5f53\u5f02\u5e38\u5904\u7406\u53e5\u67c4\uff08exception handler\uff09\u7ed3\u675f\u540e\uff0c\u7a0b\u5e8f\u4ece\u8fd9\u6761\u6307\u4ee4\u7ee7\u7eed\u8fd0\u884c\u3002<\/p>\n<ul>\n<li>\u9677\u5165(Traps)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5f53\u88ab\u4e2d\u6b62\u7684\u6307\u4ee4\u65e0\u9700\u91cd\u65b0\u6267\u884c\u65f6\u5c31\u4ea7\u751f\u9677\u5165\uff0c\u8fd9\u70b9\u4e0e\u9519\u8bef(Faults)\u4e0d\u540c\u3002\u9677\u5165\u4e3b\u8981\u88ab\u7528\u6765\u5b9e\u73b0\u8c03\u8bd5\u5668\u3002<\/p>\n<ul>\n<li>\u4e2d\u6b62(Aborts)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u4e25\u91cd\u51fa\u9519\u3002\u63a7\u5236\u786c\u4ef6\u51fa\u73b0\u6545\u969c\uff0c\u6b64\u65f6\u4e0d\u53ef\u80fd\u628a\u9020\u6210\u5f02\u5e38\u7684\u6307\u4ee4\u7cbe\u786e\u5730\u5740\u5b58\u5165EIP\u5bc4\u5b58\u5668\u3002Aborts\u88ab\u7528\u6765\u62a5\u544a\u4e25\u91cd\u7684\u51fa\u9519\uff0c\u6bd4\u5982\u786c\u4ef6\u51fa\u9519\u6216\u8005\u65e0\u6548\u7684\uff0c\u4e0d\u4e00\u81f4\u7684\u7cfb\u7edf\u8868\u7ed3\u6784\u3002\u7531\u63a7\u5236\u786c\u4ef6\u5355\u5143\u53d1\u51fa\u7684\u4e2d\u65ad\u4fe1\u53f7\u88ab\u7528\u6765\u628a\u63a7\u5236\u6743\u8f6c\u4ea4\u7ed9\u4e2d\u6b62\u5f02\u5e38\u53e5\u67c4(Abort Exception Handler)\u3002\u53e5\u67c4\u901a\u5e38\u53ea\u6709\u5f3a\u5236\u7ed3\u675f\u9020\u6210Abort\u7684\u7a0b\u5e8f\u3002<\/p>\n<ul>\n<li>\u53ef\u7f16\u7a0b\u5f02\u5e38(Programmed Exceptions)<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u8fd9\u662f\u7531\u7a0b\u5e8f\u5458\u53d1\u51fa\u7684\u3002\u7a0b\u5e8f\u5458\u53ef\u4ee5\u7528int \u6216\u8005int 3\u6307\u4ee4\u53d1\u51fa\u53ef\u7f16\u7a0b\u5f02\u5e38\u3002Into(\u68c0\u67e5\u6ea2\u51fa)bound(\u68c0\u67e5\u6570\u7ec4\u8d8a\u754c)\u6307\u4ee4\u4e5f\u53ef\u4ee5\u7528\u6765\u53d1\u51fa\u53ef\u7f16\u7a0b\u5f02\u5e38\u3002\u53ef\u7f16\u7a0b\u5f02\u5e38\u5e38\u5e38\u88ab\u79f0\u4e4b\u4e3a\u8f6f\u4e2d\u65ad(software interrupts)\u3002\u8fd9\u79cd\u5f02\u5e38\u901a\u5e38\u7528\u6765\u5b9e\u73b0\u7cfb\u7edf\u8c03\u7528\uff0c\u8fd8\u88ab\u7528\u6765\u5728\u8c03\u8bd5\u5668\u4e2d\u62a5\u544a\u4e8b\u4ef6\u3002(into\u548cbound\u6307\u4ee4\u5728IA64\u4f53\u7cfb\u4e2d\u5df2\u7ecf\u88ab\u5e9f\u5f03\u4e86\uff0c\u89c1\u53e6\u4e00\u7bc7\u535a\u6587\uff1a<a href=\"http:\/\/ykyi.net\/2012\/06\/c%E8%AF%AD%E8%A8%80%E5%92%8C%E5%AE%83%E7%9A%84%E5%AE%89%E5%85%A8%E6%80%A7\/\" target=\"_blank\" rel=\"noopener\">C\u8bed\u8a00\u548c\u5b83\u7684\u5b89\u5168\u6027<\/a>)<\/p>\n<p>copyright ykyi.net<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u82f1\u7279\u5c14\u7684\u5b98\u65b9\u6587\u6863\u5982\u4e0b\u5b9a\u4e49x86\u5e73\u53f0\u4e0b\u7684\u4e2d\u65ad\u548c\u5f02\u5e38\uff1a \u4e2d\u65ad\uff1a \u53ef\u5c4f\u5f0a\u4e2d\u65ad(Maskable Interrupts) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6240\u6709\u7531I\/O\u8bbe\u5907\u53d1\u51fa\u7684IRQ(Interupt Requests)\u90fd\u662f\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u3002\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u53ef\u4ee5\u6709\u4e24\u4e2a\u72b6\u6001\uff1a\u5c4f\u5f0a\u548c\u672a\u5c4f\u5f0a\u3002\u5c4f\u5f0a\u72b6\u6001\u7684\u4e2d\u65ad\u4f1a\u88ab\u4e2d\u65ad\u63a7\u5236\u786c\u4ef6\u5ffd\u7565\u3002 \u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad(Nonmaskable Interrupts) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53ea\u6709\u4e00\u4e9b\u5173\u952e\u7684\u4e8b\u4ef6\uff08\u5982\u786c\u4ef6\u5931\u8d25\uff09\u4f1a\u53d1\u51fa\u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u3002\u4e0d\u53ef\u5c4f\u5f0a\u4e2d\u65ad\u603b\u662f\u53ef\u4ee5\u88abCPU\u8bc6\u522b\u5230\u3002 &nbsp; \u5f02\u5e38\uff1a \u5904\u7406\u5668\u53ef\u4fa6\u6d4b\u5f02\u5e38(Processor-detected Exceptions) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CPU\u6267\u884c\u6307\u4ee4\u65f6\u4fa6\u6d4b\u5230\u4e0d\u6b63\u5e38\u7684\u72b6\u6001(anomalous condition)\u65f6\u4ea7\u751f\u8fd9\u4e2a\u5f02\u5e38\u3002\u8fd9\u79cd\u5f02\u5e38\u53c8\u6839\u636e\u5b58\u5728\u5185\u6838\u6808\u4e0a\u7684EIP\u5bc4\u5b58\u5668\u7684\u503c\u88ab\u5212\u5206\u4e3a\u4e09\u7ec4\u3002 \u9519\u8bef(Faults) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53d1\u751f\u9519\u8bef\u65f6\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u53ef\u4ee5\u88ab\u7ea0\u6b63\u3002\u7ea0\u6b63\u4ee5\u540e\uff0c\u7a0b\u5e8f\u7ee7\u7eed\u8fd0\u884c\uff0c\u4e0d\u4f1a\u635f\u5931\u8fde\u7eed\u6027\u3002\u4fdd\u5b58\u4e0b\u7684EIP\u5bc4\u5b58\u5668\u7684\u503c\u5c31\u662f\u4ea7\u751f\u8fd9\u4e2a\u9519\u8bef\u7684\u6307\u4ee4\uff0c\u5f53\u5f02\u5e38\u5904\u7406\u53e5\u67c4\uff08exception handler\uff09\u7ed3\u675f\u540e\uff0c\u7a0b\u5e8f\u4ece\u8fd9\u6761\u6307\u4ee4\u7ee7\u7eed\u8fd0\u884c\u3002 \u9677\u5165(Traps) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5f53\u88ab\u4e2d\u6b62\u7684\u6307\u4ee4\u65e0\u9700\u91cd\u65b0\u6267\u884c\u65f6\u5c31\u4ea7\u751f\u9677\u5165\uff0c\u8fd9\u70b9\u4e0e\u9519\u8bef(Faults)\u4e0d\u540c\u3002\u9677\u5165\u4e3b\u8981\u88ab\u7528\u6765\u5b9e\u73b0\u8c03\u8bd5\u5668\u3002 \u4e2d\u6b62(Aborts) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u4e25\u91cd\u51fa\u9519\u3002\u63a7\u5236\u786c\u4ef6\u51fa\u73b0\u6545\u969c\uff0c\u6b64\u65f6\u4e0d\u53ef\u80fd\u628a\u9020\u6210\u5f02\u5e38\u7684\u6307\u4ee4\u7cbe\u786e\u5730\u5740\u5b58\u5165EIP\u5bc4\u5b58\u5668\u3002Aborts\u88ab\u7528\u6765\u62a5\u544a\u4e25\u91cd\u7684\u51fa\u9519\uff0c\u6bd4\u5982\u786c\u4ef6\u51fa\u9519\u6216\u8005\u65e0\u6548\u7684\uff0c\u4e0d\u4e00\u81f4\u7684\u7cfb\u7edf\u8868\u7ed3\u6784\u3002\u7531\u63a7\u5236\u786c\u4ef6\u5355\u5143\u53d1\u51fa\u7684\u4e2d\u65ad\u4fe1\u53f7\u88ab\u7528\u6765\u628a\u63a7\u5236\u6743\u8f6c\u4ea4\u7ed9\u4e2d\u6b62\u5f02\u5e38\u53e5\u67c4(Abort Exception Handler)\u3002\u53e5\u67c4\u901a\u5e38\u53ea\u6709\u5f3a\u5236\u7ed3\u675f\u9020\u6210Abort\u7684\u7a0b\u5e8f\u3002 &hellip; <a href=\"https:\/\/ykyi.net\/?p=821\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;X86\u5e73\u53f0\u7684\u4e2d\u65ad\u548c\u5f02\u5e38&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[90],"class_list":["post-821","post","type-post","status-publish","format-standard","hentry","category-unix_linux","tag-90"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=821"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/821\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}