{"id":190,"date":"2022-09-29T09:32:02","date_gmt":"2022-09-29T01:32:02","guid":{"rendered":"https:\/\/blog.taiyang.space\/?p=190"},"modified":"2022-11-11T14:26:50","modified_gmt":"2022-11-11T06:26:50","slug":"%e7%ac%ac5%e7%ab%a0-%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/blog.taiyang.space\/?p=190","title":{"rendered":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf"},"content":{"rendered":"<h2>5.1 \u6982\u8ff0<\/h2>\n<h3>5.1.1 \u53d1\u5c55\u6982\u51b5<\/h3>\n<ul>\n<li>\u65e9\u671f<\/li>\n<li>\n<ul>\n<li>\u5206\u6563\u8fde\u63a5<\/li>\n<li>CPU\u548cI\/O\u8bbe\u5907 <strong>\u4e32\u884c<\/strong> \u5de5\u4f5c  \u7a0b\u5e8f\u67e5\u8be2\u65b9\u5f0f<\/li>\n<\/ul>\n<\/li>\n<li>\u63a5\u53e3\u6a21\u5757\u548cDMA\u9636\u6bb5<\/li>\n<li>\n<ul>\n<li>\u603b\u7ebf\u8fde\u63a5<\/li>\n<li>CPU\u548cI\/O\u8bbe\u5907 \u5e76\u884c \u5de5\u4f5c\uff1a\u4e2d\u65ad\u65b9\u5f0f\uff1bDMA\u65b9\u5f0f<\/li>\n<\/ul>\n<\/li>\n<li>\u5177\u6709\u901a\u9053\u7ed3\u6784\u7684\u9636\u6bb5<\/li>\n<li>\u5177\u6709I\/O\u5904\u7406\u673a\u5236\u7684\u9636\u6bb5<\/li>\n<\/ul>\n<hr>\n<p>&nbsp;<\/p>\n<h3>5.1.2 \u7ec4\u6210<\/h3>\n<p>\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\u7531 I\/O \u8f6f\u4ef6\u548c I\/O \u786c\u4ef6\u7ec4\u6210<\/p>\n<h4>I\/O \u8f6f\u4ef6<\/h4>\n<ol start=\"\">\n<li>I\/O \u6307\u4ee4    CPU\u6307\u4ee4\u7684\u4e00\u90e8\u5206\uff1b<\/li>\n<\/ol>\n<p>\u4e00\u6761\u6307\u4ee4\u6784\u6210\uff1a<\/p>\n<figure>\n<table>\n<thead>\n<tr>\n<th>\u64cd\u4f5c\u7801<\/th>\n<th>\u547d\u4ee4\u7801<\/th>\n<th>\u8bbe\u5907\u7801<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<ul>\n<li>\u64cd\u4f5c\u7801\uff1aI\/O\u6307\u4ee4\u6807\u5fd7<\/li>\n<li>\u547d\u4ee4\u7801\uff1a\u6307\u4ee4\u529f\u80fd\u3001\u8bfb\u3001\u5199\u3001\u68c0\u6d4b\u3001\u63a7\u5236\u547d\u4ee4<\/li>\n<li>\u8bbe\u5907\u7801\uff1a\u5730\u5740\u7801\uff0c\u6307\u660eI\/O\u6307\u4ee4\u8981\u8bbf\u95ee\u7684\u8bbe\u5907\u5730\u5740<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ol start=\"\">\n<li>\u901a\u9053\u6307\u4ee4   \u901a\u9053\u81ea\u8eab\u7684\u6307\u4ee4<\/li>\n<\/ol>\n<p>\u6307\u51fa\u6570\u636e\u7684\u9996\u5730\u5740\u3001\u4f20\u9001\u5b57\u6570\u3001\u64cd\u4f5c\u547d\u4ee4<\/p>\n<p>&nbsp;<\/p>\n<h4>I\/O \u786c\u4ef6<\/h4>\n<p>\u8bbe\u5907     I\/O\u63a5\u53e3   \u8fd9\u79cd\u65b9\u5f0f\u901a\u8fc7\u603b\u7ebf\u5c06I\/O\u8bbe\u5907\u548c\u4e3b\u673a\u76f8\u8fde<\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u91c7\u7528<strong>\u901a\u9053\u65b9\u5f0f<\/strong>\uff0c\u7ed3\u6784\u5219\u53d8\u6210\uff1a<\/p>\n<p>\u8bbe\u5907   \u8bbe\u5907\u63a7\u5236\u5668   \u901a\u9053<\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.2 I\/O\u8bbe\u5907\u548c\u4e3b\u673a\u7684\u8054\u7edc<\/h2>\n<p>\u5982\u679c\u4e3b\u673a\u60f3\u8981I\/O\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\uff0c\u5219\u9700\u8981I\/O\u7684\u5730\u5740<\/p>\n<p>\u4e0b\u9762\u5f15\u5165I\/O\u8bbe\u5907\u7684\u7f16\u5740\u65b9\u5f0f<\/p>\n<p>&nbsp;<\/p>\n<h3>5.2.1 I\/O\u8bbe\u5907\u7684\u7f16\u5740\u65b9\u5f0f<\/h3>\n<h4>1. \u7edf\u4e00\u7f16\u5740<\/h4>\n<ul>\n<li>\u53c8\u79f0\u4e3a\u5b58\u50a8\u5668\u6620\u5c04\u65b9\u5f0f\uff0c\u6307\u628a I\/O \u7aef\u53e3\u5f53\u4f5c\u5b58\u50a8\u5668\u7684\u5355\u5143\u8fdb\u884c\u5730\u5740\u5206\u914d\uff0c\u8fd9\u79cd\u65b9\u5f0f <strong>CPU \u4e0d\u9700\u8981\u8bbe\u7f6e\u4e13\u95e8\u7684 I\/O \u6307\u4ee4<\/strong>\uff0c\u7528\u7edf\u4e00\u7684\u8bbf\u5b58\u6307\u4ee4\u5c31\u53ef\u4ee5\u8bbf\u95ee I\/O \u7aef\u53e3\u3002<\/li>\n<li>\u4f18\u70b9\uff1a\u4e0d\u9700\u8981\u4e13\u95e8\u7684 I\/O \u6307\u4ee4\uff0cCPU \u8bbf\u95ee I\/O \u7aef\u53e3\u7075\u6d3b\u3001\u65b9\u4fbf\uff0cI\/O \u7aef\u53e3\u6709\u8f83\u5927\u7684\u7f16\u5740\u7a7a\u95f4\u3002<\/li>\n<li>\u7f3a\u70b9\uff1a<strong>\u5360\u7528\u5b58\u50a8\u5668\u5730\u5740<\/strong>\uff0c\u4f7f\u5185\u5bb9\u5bb9\u91cf\u53d8\u5c0f\uff0c\u5229\u7528\u5b58\u50a8\u5668\u7f16\u5740\u7684 I\/O \u8bbe\u5907\u8fdb\u884c\u6570\u636e\u8f93\u5165\u8f93\u51fa\u7b49<strong>\u64cd\u4f5c\u901f\u5ea6\u8f83\u6162\u3002<\/strong><\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920206.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u72ec\u7acb\u7f16\u5740<\/h4>\n<ul>\n<li>\u53c8\u79f0\u4e3a I\/O \u6620\u5c04\u65b9\u5f0f\uff0c\u5355\u72ec\u5bf9 I\/O \u7aef\u53e3\u8fdb\u884c\u7f16\u5740\uff0c\u4e0e\u4e3b\u5b58\u5730\u5740\u7a7a\u95f4\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u5730\u5740\u7a7a\u95f4\uff0c\u9700\u8981\u8bbe\u7f6e\u4e13\u95e8\u7684 I\/O \u6307\u4ee4\u6765\u64cd\u4f5c I\/O \u7aef\u53e3\u3002<\/li>\n<li>\u4f18\u70b9\uff1a\u4f7f\u7528\u4e13\u95e8\u7684 I\/O \u6307\u4ee4\uff0c\u7a0b\u5e8f\u7f16\u5236\u6e05\u6670\uff0c\u6613\u4e8e\u7406\u89e3\u3002<\/li>\n<li>\u7f3a\u70b9\uff1aI\/O \u6307\u4ee4\u5c11\uff0c\u4e00\u822c\u53ea\u80fd\u5bf9\u7aef\u53e3\u8fdb\u884c\u4f20\u9001\u64cd\u4f5c\uff0c\u5c24\u5176\u9700\u8981 CPU \u63d0\u4f9b\u5b58\u50a8\u5668\u8bfb\/\u5199\u3001I\/O \u8bbe\u5907\u8bfb\/\u5199\u4e24\u5957\u63a7\u5236\u4fe1\u53f7\uff0c\u589e\u52a0\u4e86\u63a7\u5236\u7684\u590d\u6742\u6027\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920286.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u5bf9\u8bbe\u5907\u8fdb\u884c\u7f16\u5740\u540e\u5c31\u53ef\u4ee5\u8fdb\u884c\u8bbe\u5907\u9009\u5740<\/p>\n<p>\u7528<strong>\u8bbe\u5907\u9009\u62e9\u7535\u8def<\/strong>\u8bc6\u522b\u662f\u5426\u88ab\u9009\u4e2d<\/p>\n<p>\u9009\u4e2d\u4e4b\u540e\u8fdb\u884c\u4fe1\u606f\u4f20\u9001<\/p>\n<p>\u4e0b\u9762\u5f15\u5165\u4fe1\u606f\u4f20\u9001\u65b9\u5f0f<\/p>\n<p>&nbsp;<\/p>\n<h3>5.2.2 \u4f20\u9001\u65b9\u5f0f<\/h3>\n<p>\u5728\u7cfb\u7edf\u603b\u7ebf\u90a3\u7ae0\u63d0\u5230\u8fc7\u6570\u636e\u4f20\u9001\u65b9\u5f0f\u67092\u79cd\uff1a<strong>\u4e32\u884c\u3001\u5e76\u884c<\/strong><\/p>\n<p>\u8fd9\u8fb9\u4e5f\u662f\u8fd92\u79cd\u65b9\u5f0f<\/p>\n<p>&nbsp;<\/p>\n<h3>5.2.3 \u8054\u7edc\u65b9\u5f0f<\/h3>\n<h4>1. \u7acb\u5373\u54cd\u5e94<\/h4>\n<p>&nbsp;<\/p>\n<h4>2. \u5f02\u6b65<\/h4>\n<p>\u5f02\u6b65\u5de5\u4f5c\u91c7\u7528\u5e94\u7b54\u4fe1\u53f7\uff1b\u8fd9\u91cc\u5e94\u7b54\u4fe1\u53f7\u7528\u4e8eI\/O\u63a5\u53e3\u548cI\/O\u8bbe\u5907\u4e4b\u95f4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920412.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>3. \u540c\u6b65<\/h4>\n<p>\u540c\u6b65\u5de5\u4f5c\u91c7\u7528\u540c\u6b65\u65f6\u6807<\/p>\n<p>\u5728\u524d\u9762\u6211\u4eec\u4ecb\u7ecd\u8fc7\u91c7\u7528\u540c\u6b65\u65b9\u5f0f\u9700\u8981\u6709\u4e00\u4e2a\u5b9a\u5bbd\u5b9a\u8ddd\u7684\u65f6\u6807<\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.3 I\/O\u8bbe\u5907\u548c\u4e3b\u673a\u7684\u8fde\u63a5\u65b9\u5f0f<\/h2>\n<h4>1. \u8f90\u5c04\u5f0f<\/h4>\n<p>\u5c31\u662f\u4e0a\u6587\u8bf4\u7684<strong>\u5206\u6563\u5f0f<\/strong><\/p>\n<p>\u6bcf\u53f0\u8bbe\u5907\u90fd\u6709\u914d\u6709\u4e00\u5957\u63a7\u5236\u7ebf\u8def\u548c\u4e00\u7ec4\u4fe1\u53f7\u7ebf<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920247.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\uff08Ps\uff1a\u5410\u69fd\u4e00\u4e0b\u4e3a\u4ec0\u4e48\u6709\u4eba\u89c9\u5f97\u8ba1\u7b97\u673a\u96be\u5b66\uff0c\u5c31\u662f\u56e0\u4e3a\u4e00\u4e9bshabi\u628a\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u539f\u7406\u975e\u8981\u7528\u4e00\u4e2a\u6666\u6da9\u96be\u61c2\u7684\u201c\u4e13\u4e1a\u540d\u8bcd\u201d\u6765\u63cf\u8ff0<\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u603b\u7ebf\u8fde\u63a5<\/h4>\n<p>\u5916\u90e8\u8bbe\u5907\u901a\u8fc7\u63a5\u53e3\u548c\u4e3b\u673a\u8fdb\u884c\u8fde\u63a5\uff0c\u63a5\u53e3\u80fd\u591f\u5411\u5916\u90e8\u8bbe\u5907\u4f20\u9001\u4e3b\u673a\u7684\u63a7\u5236\u547d\u4ee4\u3001\u4e5f\u53ef\u4ee5\u5411\u4e3b\u673a\u4f20\u9001\u5916\u90e8\u8bbe\u5907\u7684\u72b6\u6001\u4fe1\u606f\u3001\u63a5\u53e3\u4e5f\u53ef\u4ee5\u5b8c\u6210\u6570\u636e\u7684\u7f13\u5b58<\/p>\n<ul>\n<li>\u4f18\u70b9\uff1a\u4fbf\u4e8e\u589e\u5220\u8bbe\u5907<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920298.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.4 I\/O\u8bbe\u5907\u548c\u4e3b\u673a\u4fe1\u606f\u4f20\u9001\u7684\u63a7\u5236\u65b9\u5f0f<\/h2>\n<h3>5.4.1 \u7a0b\u5e8f\u67e5\u8be2\u65b9\u5f0f<\/h3>\n<p>\u5b8c\u5168\u901a\u8fc7\u7a0b\u5e8f\u6765\u63a7\u5236\u4e3b\u673a\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u4fe1\u606f\u4f20\u9001\u3002<\/p>\n<p>\u901a\u5e38\u7684\u529e\u6cd5\u662f\u5728\u7528\u6237\u7684\u7a0b\u5e8f\u4e2d\u5b89\u6392\u4e00\u6bb5\u7531\u8f93\u5165\u8f93\u51fa\u6307\u4ee4\u548c\u5176\u4ed6\u6307\u4ee4\u6240\u7ec4\u6210\u7684\u7a0b\u5e8f\u6bb5\u76f4\u63a5\u63a7\u5236\u5916\u56f4\u8bbe\u5907\u7684\u5de5\u4f5c\u3002\u4e5f\u5c31\u662f\u8bf4CPU\u8981\u4e0d\u65ad\u5730\u67e5\u8be2\u5916\u56f4\u8bbe\u5907\u7684\u5de5\u4f5c\u72b6\u6001\uff0c\u4e00\u65e6\u5916\u56f4\u8bbe\u5907\u201c\u51c6\u5907\u597d\u201d\u6216\u201c\u4e0d\u5fd9\u201d\uff0c\u5373\u53ef\u8fdb\u884c\u6570\u636e\u7684\u4f20\u9001\u3002\u8be5\u65b9\u6cd5\u662f\u4e3b\u673a\u4e0e\u5916\u8bbe\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\u7684\u6700\u7b80\u5355\u3001\u6700\u57fa\u672c\u7684\u63a7\u5236\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u4f18\u70b9\uff1a<\/strong>\u8f83\u597d\u534f\u8c03\u4e3b\u673a\u4e0e\u5916\u8bbe\u4e4b\u95f4\u7684\u65f6\u95f4\u5dee\u5f02\uff0c\u6240\u7528\u786c\u4ef6\u5c11\u3002<br \/>\n<strong>\u7f3a\u70b9\uff1a<\/strong>\u4e3b\u673a\u4e0e\u5916\u8bbe\u53ea\u80fd\u4e32\u884c\u5de5\u4f5c\uff0c\u4e3b\u673a\u4e00\u4e2a\u65f6\u95f4\u6bb5\u53ea\u80fd\u4e0e\u4e00\u4e2a\u5916\u8bbe\u8fdb\u884c\u901a\u8baf\uff0cCPU\u6548\u7387\u4f4e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920397.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.4.2 \u7a0b\u5e8f\u4e2d\u65ad\u65b9\u5f0f<\/h3>\n<p>\u5f53\u5916\u56f4\u8bbe\u5907\u5b8c\u6210\u6570\u636e\u4f20\u9001\u7684\u51c6\u5907\u540e\uff0c\u4fbf\u4e3b\u52a8\u5411CPU\u53d1\u51fa<strong>\u201c\u4e2d\u65ad\u8bf7\u6c42\u201d<\/strong> \u4fe1\u53f7\u3002\u82e5CPU\u5141\u8bb8\u4e2d\u65ad\uff0c\u5219\u5728\u4e00\u6761\u6307\u4ee4\u6267\u884c\u5b8c\u540e\uff0c\u54cd\u5e94\u4e2d\u65ad\u8bf7\u6c42\uff0c\u8f6c\u53bb\u6267\u884c\u4e2d\u65ad\u670d\u52a1\u5b50\u7a0b\u5e8f\uff0c\u5b8c\u6210\u6570\u636e\u4f20\u9001\uff0c\u901a\u5e38\u4f20\u9001\u4e00\u4e2a\u5b57\u6216\u4e00\u4e2a\u5b57\u8282\u3002\u4f20\u9001\u5b8c\u540e\u7ee7\u7eed\u6267\u884c\u539f\u7a0b\u5e8f\u3002<\/p>\n<p>\u4e2d\u65ad\u8bf7\u6c42\u65b9\u5f0f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u5b9e\u73b0\u4e86<strong>CPU\u548c\u5916\u56f4\u8bbe\u5907\u7684\u5e76\u884c\u5de5\u4f5c<\/strong>\u3002\u82e5\u5728\u67d0\u4e00\u65f6\u523b\u6709\u51e0\u53f0\u8bbe\u5907\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42\uff0cCPU\u53ef\u6839\u636e\u9884\u5148\u5b9a\u597d\u7684\u4f18\u5148\u7ea7\uff0c\u53bb\u5904\u7406\u51e0\u53f0\u5916\u8bbe\u7684\u6570\u636e\u4f20\u9001\u3002<\/p>\n<p>\u4f46\u662f\u5bf9\u4e8e\u5de5\u4f5c\u9891\u7387\u8f83\u9ad8\u7684\u5916\u8bbe\uff0c\u5982\u78c1\u76d8\uff0c\u6570\u636e\u4ea4\u6362\u901a\u5e38\u662f\u6210\u6279\u7684\uff0c\u82e5\u91c7\u7528\u4e2d\u65ad\u65b9\u5f0f\uff0c\u5219\u4e0d\u5408\u9002\u3002<strong>\u4e00\u822c\u91c7\u7528DMA\uff08<\/strong>Direct Memory Access<strong>\uff09\u65b9\u5f0f\u3002<\/strong><\/p>\n<p><strong>\u4f18\u70b9\uff1a<\/strong>\u907f\u514d\u9891\u7e41\u67e5\u8be2\uff0c\u9002\u5408\u968f\u673a\u51fa\u73b0\u7684\u670d\u52a1\u548c\u4e2d\u4f4e\u901f\u5916\u8bbe\u4f7f\u7528\u3002<br \/>\n<strong>\u7f3a\u70b9<\/strong>\uff1a\u6210\u6279\u6570\u636e\u4ea4\u6362\u65f6\uff0c\u4e2d\u65ad\u5f71\u54cd\u4f20\u9001\u6548\u7387\uff0c\u4e00\u6b21\u4f20\u9001\u4e00\u4e2a\u5b57\u7b26\uff0c\u4e2d\u65ad\u5904\u7406\u65f6\u95f4\u5927\u4e8e\u4f20\u9001\u6570\u636e\u65f6\u95f4\u3002\u9700\u8981\u4e00\u5b9a\u7684\u786c\u4ef6\u7535\u8def\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920677.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/swadian2008\/article\/details\/110825848\"><br \/>\n<\/a><\/p>\n<h3>5.4.3 DMA\u65b9\u5f0f<\/h3>\n<p>DMA\u65b9\u5f0f\uff0cDirect Memory Access\uff0c\u4e5f\u79f0\u4e3a\u6210\u7ec4\u6570\u636e\u4f20\u9001\u65b9\u5f0f\uff0c\u6709\u65f6\u4e5f\u79f0\u4e3a<strong>\u76f4\u63a5\u5185\u5b58\u64cd\u4f5c<\/strong>\u3002DMA\u65b9\u5f0f\u5728\u6570\u636e\u4f20\u9001\u8fc7\u7a0b\u4e2d\uff0c\u6ca1\u6709\u4fdd\u5b58\u73b0\u573a\u3001\u6062\u590d\u73b0\u573a\u4e4b\u7c7b\u7684\u5de5\u4f5c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u7531\u4e8eCPU\u6839\u672c\u4e0d\u53c2\u52a0\u4f20\u9001\u64cd\u4f5c<\/strong>\uff0c\u56e0\u6b64\u5c31\u7701\u53bb\u4e86CPU\u53d6\u6307\u4ee4\u3001\u53d6\u6570\u3001\u9001\u6570\u7b49\u64cd\u4f5c\u3002\u5185\u5b58\u5730\u5740\u4fee\u6539\u3001\u4f20\u9001\u5b57 \u4e2a\u6570\u7684\u8ba1\u6570\u7b49\u7b49\uff0c\u4e5f\u4e0d\u662f\u7531\u8f6f\u4ef6\u5b9e\u73b0\uff0c\u800c\u662f\u7528\u786c\u4ef6\u7ebf\u8def\u76f4\u63a5\u5b9e\u73b0\u7684\u3002\u6240\u4ee5DMA\u65b9\u5f0f\u80fd\u6ee1\u8db3\u9ad8\u901fI\/O\u8bbe\u5907\u7684\u8981\u6c42\uff0c\u4e5f\u6709\u5229\u4e8eCPU\u6548\u7387\u7684\u53d1\u6325\u3002<\/p>\n<p>\u8fd9\u8fb9\u5148\u7b80\u5355\u4ecb\u7ecd3\u79cd\u65b9\u5f0f\u7684\u7279\u70b9\uff0c\u4e0b\u9762\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>5.4.4 \u4e09\u79cd\u65b9\u5f0f\u7684CPU\u5de5\u4f5c\u6548\u7387\u7684\u6bd4\u8f83<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920868.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.5 I\/O\u8bbe\u5907<\/h2>\n<h3>5.5.1 \u6982\u8ff0<\/h3>\n<p>\u5916\u90e8\u8bbe\u5907\u901a\u8fc7I\/O\u63a5\u53e3\u548c\u4e3b\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u7684\u4ea4\u6362\uff1b\u4e3b\u673a\u901a\u8fc7I\/O\u63a5\u53e3\u5411\u5916\u90e8\u8bbe\u5907\u4f20\u8f93\u63a7\u5236\u547d\u4ee4\uff0c\u540c\u65f6\u901a\u8fc7I\/O\u63a5\u53e3\u8bfb\u53d6\u5916\u90e8\u8bbe\u5907\u7684\u72b6\u6001\uff1b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920863.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>5.6 \u8282\u4f1a\u8be6\u7ec6\u4ecb\u7ecdI\/O\u63a5\u53e3<\/p>\n<p>\u5916\u90e8\u8bbe\u5907\u5206\u7c7b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920040.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.5.2 \u8f93\u5165\u8bbe\u5907<\/h3>\n<ol start=\"\">\n<li>\u952e\u76d8<\/li>\n<li>\n<ol start=\"\">\n<li>\u6309\u952e<\/li>\n<li>\u5224\u65ad\u54ea\u4e2a\u952e\u88ab\u6309\u4e0b<\/li>\n<li>\u5c06\u6b64\u952e\u7ffb\u8bd1\u6210ASCII\u7801\uff08\u7f16\u8bd1\u952e\u76d8\u6cd5\uff09\uff08\u6559\u6750P169 \u56fe5.15\u8bb2\u8ff0\u4e86\u7f16\u7801\u952e\u76d8\u7684\u7ed3\u6784\u548c\u5de5\u4f5c\u539f\u7406\uff09<\/li>\n<\/ol>\n<\/li>\n<li>\u9f20\u6807<\/li>\n<li>\n<ol start=\"\">\n<li>\u673a\u68b0\u5f0f   \u91d1\u5c5e\u7403 \u7535\u4f4d\u5668<\/li>\n<li>\u5149\u7535\u5f0f   \u5149\u7535\u8f6c\u6362\u5668<\/li>\n<\/ol>\n<\/li>\n<li>\u89e6\u6478\u5c4f<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>5.5.3 \u8f93\u51fa\u8bbe\u5907<\/h3>\n<ol start=\"\">\n<li>\u663e\u793a\u5668<\/li>\n<li>\n<ol start=\"\">\n<li>\u5b57\u7b26\u663e\u793a   \u5b57\u7b26\u53d1\u751f\u5668<\/li>\n<li>\u56fe\u5f62\u663e\u793a   \u4e3b\u89c2\u56fe\u50cf<\/li>\n<li>\u56fe\u50cf\u663e\u793a    \u5ba2\u89c2\u56fe\u50cf<\/li>\n<\/ol>\n<\/li>\n<li>\u6253\u5370\u673a<\/li>\n<li>\n<ol start=\"\">\n<li>\u51fb\u6253\u5f0f   \u70b9\u9635\u5f0f\uff08\u9010\u5b57\u3001\u9010\u884c\uff09<\/li>\n<li>\u975e\u51fb\u6253\u5f0f<\/li>\n<\/ol>\n<\/li>\n<li>\n<ol start=\"\">\n<li>\n<ol start=\"\">\n<li>\u6fc0\u5149   \u9010\u9875<\/li>\n<li>\u55b7\u58a8   \u9010\u884c<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>5.5.4 \u5176\u4ed6<\/h3>\n<ol start=\"\">\n<li>A\/D\u3001D\/A  \u6a21\u62df\/\u6570\u5b57\uff08\u6570\u5b57\/\u6a21\u62df\uff09\u8f6c\u6362\u5668<\/li>\n<li>\u7ec8\u7aef    \u5b8c\u6210\u663e\u793a\u63a7\u5236\u4e0e\u5b58\u50a8\u3001\u952e\u76d8\u7ba1\u7406\u53ca\u901a\u4fe1\u63a7\u5236<\/li>\n<li>\u6c49\u5b57\u5904\u7406<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>5.5.5 \u591a\u5a92\u4f53\u8bbe\u5907<\/h3>\n<p>\u591a\u5a92\u4f53\uff08Multimedia\uff09\u662f\u591a\u79cd\u5a92\u4f53\u7684\u7efc\u5408\uff0c\u4e00\u822c\u5305\u62ec\u6587\u672c\uff0c\u58f0\u97f3\u548c\u56fe\u50cf\u7b49\u591a\u79cd\u5a92\u4f53\u5f62\u5f0f\uff0c\u591a\u5a92\u4f53\u6307\u7ec4\u5408\u4e24\u79cd\u6216\u4e24\u79cd\u4ee5\u4e0a\u5a92\u4f53\u7684\u4e00\u79cd\u4eba\u673a\u4ea4\u4e92\u5f0f\u4fe1\u606f\u4ea4\u6d41\u548c\u4f20\u64ad\u5a92\u4f53\u3002<\/p>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.6 I\/O\u63a5\u53e3<\/h2>\n<h3>5.6.1 \u6982\u8ff0<\/h3>\n<p>\u63a5\u53e3\u8fd9\u4e2a\u8bcd\u6709\u5f88\u5e7f\u6cdb\u7684\u542b\u4e49\uff0c\u63a5\u53e3\u53ef\u4ee5\u7528\u5728\u8f6f\u4ef6\u548c\u8f6f\u4ef6\u4e4b\u95f4\uff1b\u786c\u4ef6\u548c\u786c\u4ef6\u4e4b\u95f4\uff1b\u786c\u4ef6\u548c\u8f6f\u4ef6\u4e4b\u95f4<\/p>\n<p>\u8fd9\u8282\u4e3b\u8981\u8bb2I\/O\u8bbe\u5907\u548c\u4e3b\u673a\u4e4b\u95f4\u7684\u63a5\u53e3\uff0c\u5373\u786c\u4ef6\u548c\u786c\u4ef6\u4e4b\u95f4<\/p>\n<p>\u5148\u660e\u767d\u4e3a\u4ec0\u4e48\u8981\u8bbe\u7f6e\u63a5\u53e3\uff1f<\/p>\n<ol start=\"\">\n<li>\u5b9e\u73b0\u8bbe\u5907\u7684\u9009\u62e9<\/li>\n<li>\u5b9e\u73b0\u6570\u636e\u7f13\u51b2\u8fbe\u5230\u901f\u5ea6\u5339\u914d<\/li>\n<li>\u5b9e\u73b0\u6570\u636e\u683c\u5f0f\u7684\u8f6c\u6362\uff08\u4e32\u884c\u2014\u5e76\u884c\uff09<\/li>\n<li>\u5b9e\u73b0\u7535\u5e73\u8f6c\u6362<\/li>\n<li>\u4f20\u9001\u63a7\u5236\u547d\u4ee4<\/li>\n<li>\u53cd\u6620\u8bbe\u5907\u7684\u72b6\u6001\uff08\u201c\u5fd9\u201d\u3001\u201c\u5c31\u7eea\u201d\u3001\u201c\u4e2d\u65ad\u8bf7\u6c42\u201d\uff09<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>5.6.2 \u63a5\u53e3\u7684\u529f\u80fd\u548c\u7ec4\u6210<\/h3>\n<ul>\n<li><strong>\u5b9e\u73b0\u4e3b\u673a\u548c\u5916\u8bbe\u7684\u901a\u4fe1\u8054\u7edc\u63a7\u5236<\/strong>\u3002\u4e3b\u8981\u662f\u65f6\u5e8f\u914d\u5408\u3001\u5de5\u4f5c\u901f\u5ea6\u4e0a\u7684\u534f\u8c03\uff0c\u786e\u4fdd\u4fe1\u606f\u7684\u6b63\u786e\u4f20\u8f93\uff0c\u4ece\u800c\u4fdd\u8bc1\u8ba1\u7b97\u673a\u7cfb\u7edf\u7edf\u4e00\u3001\u534f\u8c03\u5730\u5de5\u4f5c\u3002<\/li>\n<li><strong>\u8fdb\u884c\u5730\u5740\u8bd1\u7801\u548c\u8bbe\u5907\u9009\u62e9<\/strong>\u3002\u63a5\u53e3\u8d1f\u8d23\u901a\u8fc7 CPU \u9001\u6765\u5730\u5916\u8bbe\u5730\u5740\u8fdb\u884c\u8bd1\u7801\u4ea7\u751f\u8bbe\u5907\u9009\u62e9\u4fe1\u606f\uff0c\u4ece\u800c\u786e\u5b9a\u76ee\u6807\u5916\u8bbe\u3002<\/li>\n<li><strong>\u5b9e\u73b0\u6570\u636e\u7f13\u51b2<\/strong>\u3002\u4e3b\u8981\u662f\u9488\u5bf9 CPU \u901f\u5ea6\u4e0e\u5916\u8bbe\u7684\u76f8\u5dee\u5f88\u5927\uff0c\u56e0\u6b64\u63a5\u53e3\u5fc5\u987b\u8bbe\u7f6e\u6570\u636e\u7f13\u51b2\u5bc4\u5b58\u5668\u8fdb\u884c\u6682\u5b58\u6570\u636e\uff0c\u907f\u514d CPU \u9001\u6765\u7684\u5927\u91cf\u6570\u636e\u800c\u5916\u8bbe\u5904\u7406\u4e0d\u8fc7\u6765\u5bfc\u81f4\u5916\u8bbe\u5954\u6e83\uff0c\u6216\u8005\u9020\u6210\u6570\u636e\u7684\u4e22\u5931\u3002<\/li>\n<li><strong>\u4fe1\u53f7\u683c\u5f0f\u8f6c\u6362<\/strong>\u3002\u4e3b\u8981\u662f\u5bf9\u7535\u5e73\u3001\u6570\u636e\u683c\u5f0f\u7b49\u8fdb\u884c\u8f6c\u6362\uff0c\u63a5\u53e3\u9700\u8981\u63d0\u4f9b\u8ba1\u7b97\u673a\u548c\u5916\u8bbe\u4e4b\u95f4\u7684\u4fe1\u53f7\u683c\u5f0f\u7684\u8f6c\u6362\u529f\u80fd\uff0c\u5982\u7535\u5e73\u8f6c\u6362\u3001\u5e76\/\u4e32\u6216\u4e32\/\u5e76\u8f6c\u6362\u3001\u6a21\/\u6570\u6216\u6570\/\u6a21\u8f6c\u6362\u7b49\u3002<\/li>\n<li><strong>\u4f20\u9001\u63a7\u5236\u547d\u4ee4\u548c\u72b6\u6001\u4fe1\u606f<\/strong>\u3002\u63a7\u5236\u547d\u4ee4\u6307\u63a5\u53e3\u6839\u636e CPU \u7684\u8bf7\u6c42\u5bf9\u6307\u5b9a\u7684\u5916\u8bbe\u8fdb\u884c\u5f00\u542f\u3001\u5173\u95ed\u7b49\u63a7\u5236\uff1b\u72b6\u6001\u4fe1\u606f\u5c31\u662f\u6307\u63a5\u53e3\u5c06\u6307\u5b9a\u5916\u8bbe\u201c\u51c6\u5907\u597d\u201d\u7b49\u8868\u793a\u5916\u8bbe\u72b6\u6001\u7684\u4fe1\u606f\u53cd\u9988\u7ed9 CPU\uff0c\u4ee5\u53ca CPU \u63d0\u51fa\u4e2d\u65ad\u65f6\u53d1\u9001\u7ed9\u6307\u5b9a\u5916\u8bbe\u7684\u76f8\u5173\u54cd\u5e94\u4fe1\u53f7\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920985.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u63a5\u53e3\u7535\u8def\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920022.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u6784\u6210\u7b80\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920185.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.6.3 \u63a5\u53e3\u7c7b\u578b<\/h3>\n<ol start=\"\">\n<li>\u6309\u6570\u636e<strong>\u4f20\u9001\u65b9\u5f0f<\/strong>\u5206\u7c7b<\/li>\n<li>\n<ol start=\"\">\n<li>\u5e76\u884c\u63a5\u53e3<\/li>\n<li>\u4e32\u884c\u63a5\u53e3<\/li>\n<\/ol>\n<\/li>\n<li>\u6309\u529f\u80fd<strong>\u9009\u62e9\u7684\u7075\u6d3b\u6027<\/strong>\u5206\u7c7b<\/li>\n<li>\n<ol start=\"\">\n<li>\u53ef\u7f16\u7a0b\u63a5\u53e3<\/li>\n<li>\u4e0d\u53ef\u7f16\u7a0b\u63a5\u53e3<\/li>\n<\/ol>\n<\/li>\n<li>\u6309<strong>\u901a\u7528\u6027<\/strong>\u5206\u7c7b<\/li>\n<li>\n<ol start=\"\">\n<li>\u901a\u7528\u63a5\u53e3<\/li>\n<li>\u4e13\u7528\u63a5\u53e3<\/li>\n<\/ol>\n<\/li>\n<li>\u6309\u6570\u636e\u4f20\u9001\u7684<strong>\u63a7\u5236\u65b9\u5f0f<\/strong>\u5206\u7c7b<\/li>\n<li>\n<ol start=\"\">\n<li>\u4e2d\u65ad\u63a5\u53e3<\/li>\n<li>DMA\u63a5\u53e3<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<hr>\n<p>&nbsp;<\/p>\n<h2>5.7 \u7a0b\u5e8f\u4e2d\u65ad\u8be6\u89e3<\/h2>\n<h3>5.7.1 \u4e2d\u65ad\u7684\u6982\u5ff5<\/h3>\n<p>\u4e2d\u65ad\u662f\u6307CPU\u5728\u6267\u884c\u7a0b\u5e8f\u8fc7\u7a0b\u4e2d\u53d1\u751f<strong>\u610f\u5e38\u4e8b\u4ef6<\/strong>\u6216\u8005<strong>\u7279\u6b8a\u4e8b\u4ef6\uff0c<\/strong>CPU\u8981\u4e2d\u65ad\u5f53\u524d\u7a0b\u5e8f\u7684\u5904\u7406\u6216\u8005\u5f53\u524d\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u8f6c\u800c\u53bb\u5904\u7406\u8fd9\u4e2a\u7279\u6b8a\u4e8b\u4ef6\u6216\u8005\u5f02\u5e38\u4e8b\u4ef6\u3002\u5904\u7406\u7ed3\u675f\u540e\u8981\u8fd4\u56de\u5230\u88ab\u4e2d\u65ad\u7684\u7a0b\u5e8f\u7684\u7a0b\u5e8f\u65ad\u70b9\uff0c\u7ee7\u7eed\u53bb\u6267\u884c\u539f\u6765\u7684\u7a0b\u5e8f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920359.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u7701\u7565\u53f7\u4ee3\u8868\u6267\u884c\u6b63\u5e38\u7a0b\u5e8f\uff0c\u5728K\u9636\u6bb5\u6536\u5230\u4e2d\u65ad\u8bf7\u6c42\uff0c\u5982\u679c\u80fd\u5904\u7406\u8fd9\u4e2a\u8bf7\u6c42\u5c31\u54cd\u5e94\u5b83\uff0c\u540c\u65f6\u505c\u6b62\u5f53\u524d\u6267\u884c\u7684\u7a0b\u5e8f\uff0c\u5904\u7406\u4e2d\u65ad\u8bf7\u6c42\u540e\uff0c\u5728K+1\u9636\u6bb5\u91cd\u65b0\u6267\u884c\u521a\u624d\u88ab\u4e2d\u65ad\u7684\u7a0b\u5e8f<\/p>\n<p>&nbsp;<\/p>\n<h3>5.7.2 I\/O\u4e2d\u65ad\u7684\u4ea7\u751f<\/h3>\n<p>\u4e00\u4e2a\u4e1c\u897f\u4ea7\u751f\u80af\u5b9a\u4f1a\u6709\u539f\u56e0\u6216\u8005\u53eb\u505a\u6e90\u5934<\/p>\n<p>\u9996\u5148\u4e86\u89e3\u4ec0\u4e48\u662f\u4e2d\u65ad\u6e90\uff1f<\/p>\n<p>\u5728\u4e3b\u673a\u7684\u5916\u90e8\u3001\u4e3b\u673a\u7684\u5185\u90e8\uff1bCPU\u7684\u5916\u90e8\u3001CPU\u7684\u5185\u90e8\u80fd\u591f\u5f15\u53d1CPU\u53d1\u751f\u4e2d\u65ad\u7684\u56e0\u7d20\uff0c\u6211\u4eec\u90fd\u628a\u5b83\u53eb\u505a\u4e2d\u65ad\u6e90<\/p>\n<p>\u4ee5\u6253\u5370\u673a\u4e3a\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920455.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.7.3 \u7a0b\u5e8f\u4e2d\u65ad\u65b9\u5f0f\u7684\u63a5\u53e3\u7535\u8def<\/h3>\n<h4>1. \u4e2d\u65ad\u8bf7\u6c42\u89e6\u53d1\u5668\u548c\u4e2d\u65ad\u5c4f\u853d\u89e6\u53d1\u5668<\/h4>\n<p>\u4e00\u4e2a\u5916\u90e8\u8bbe\u5907\u5411CPU\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42\uff0c\u4f1a\u6709\u4e00\u4e2a\u4e2d\u65ad\u8bf7\u6c42\u6807\u5fd7\uff0c\u6240\u4ee5\u9700\u8981\u4e2d\u65ad\u89e6\u53d1\u5668 \uff1b<\/p>\n<p>\u8fd9\u4e2a\u4e2d\u65ad\u8bf7\u6c42\u6807\u5fd7\u80fd\u5426\u53d8\u6210\u4e2d\u65ad\u8bf7\u6c42\u4fe1\u53f7\u8fd8\u8981\u770b\u8be5\u6807\u5fd7\u662f\u5426\u4f1a\u88ab\u5c4f\u853d\u6389\uff0c\u6240\u4ee5\u6211\u4eec\u8fd8\u9700\u8981\u4e00\u4e2a\u4e2d\u65ad\u5c4f\u853d\u89e6\u53d1\u5668\u3002\u56e0\u4e3a\u6709\u65f6\u5019CPU\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f\u6216\u8005\u6b63\u5728\u6267\u884c\u7684\u4e2d\u65ad\u7a0b\u5e8f\u7684\u91cd\u8981\u6027\uff0c\u8981\u6bd4\u8fd9\u4e2a\u8bbe\u5907\u63d0\u51fa\u7684\u4e2d\u65ad\u8bf7\u6c42\u7684\u91cd\u8981\u6027\u8981\u9ad8\uff0c\u90a3\u4e48\u8fd9\u4e2a\u4e2d\u65ad\u6807\u5fd7\u4f1a\u88ab\u4e2d\u65ad\u5c4f\u853d\u5668\u5c4f\u853d\u6389\uff0c\u4e0d\u8ba9\u5b83\u5411CPU\u53d1\u51fa\u4e2d\u65ad\u4fe1\u53f7<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920548.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>D\u89e6\u53d1\u5668\u51c6\u5907\u597d\u6570\u636e\u65f6Q\u7aef\u4e3a1\uff0cMASK\u7684<strong>Q\u975e\u7aef<\/strong>\u4e3a1\uff0c\u5373<strong>Q\u7aef\u4e3a0<\/strong>\uff08\u4e2d\u65ad\u6807\u5fd7\u6ca1\u6709\u88ab\u5c4f\u853d\uff09\uff0c\u4e24\u8005\u7ecf\u8fc7\u4e0e\u95e8\u4e3a1\u7684\u8bdd\u8fdb\u5165INTR\uff0c\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42\u4fe1\u53f7<\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u6392\u961f\u5668<\/h4>\n<ul>\n<li>\u6392\u961f<\/li>\n<\/ul>\n<ol start=\"\">\n<li>\n<ol start=\"\">\n<li>\u786c\u4ef6   \u5728CPU\u5185\u6216\u5728\u63a5\u53e3\u7535\u8def\u4e2d\uff08\u94fe\u5f0f\u6392\u961f\u5668\uff09<\/li>\n<li>\u8f6f\u4ef6   \u8be6\u89c1<a href=\"https:\/\/blog.taiyang.space\/?p=197\">\u7b2c8\u7ae0<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u786c\u4ef6\u6392\u961f\u5668<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920588.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u5047\u8bbe\u73b0\u5728INTR2\u4e3a\u9ad8\u7535\u5e731\uff0c\u5176\u4ed6\u90fd\u4e3a\u4f4e\u7535\u5e730<\/p>\n<p>\u7ecf\u8fc7\u4e0e\u975e\u95e8\u540e\uff0c\u53ea\u6709INTP1\u548cINTP2\u4e3a\u9ad8\u7535\u5e73\uff0c\u4f18\u5148\u7ea7\u9ad8<\/p>\n<p>\u90a3\u6211\u4eec\u600e\u4e48\u8ba9\u5b83\u53ea\u6709INTP2\u4e3a\u9ad8\u7535\u5e73\u5462<\/p>\n<p>\u5728\u4e0a\u9762\u518d\u52a0\u4e00\u4e2a\u4e0e\u975e\u95e8\u548c\u975e\u95e8<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920772.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u8fd9\u6837\u5c31\u53ea\u6709INTP2\u4e3a\u9ad8\u7535\u5e73\uff0c\u5904\u4e8e\u4f18\u5148\u72b6\u6001<\/p>\n<p>&nbsp;<\/p>\n<h4>3. \u4e2d\u65ad\u5411\u91cf\u5730\u5740\u5f62\u6210\u90e8\u4ef6<\/h4>\n<p>\u7ecf\u8fc7\u6392\u961f\u5668\u540e\uff0c\u786e\u8ba4\u54cd\u5e94\u54ea\u4e00\u4e2a\u4e2d\u65ad\u6e90\uff0c\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u627e\u5230\u8be5\u4e2d\u65ad\u6e90\u7684\u5165\u53e3\u5730\u5740\u5462<\/p>\n<p>\u6709\u4e24\u79cd\u65b9\u6cd5<\/p>\n<ul>\n<li>\u5165\u53e3\u5730\u5740<\/li>\n<\/ul>\n<ol start=\"\">\n<li>\n<ol start=\"\">\n<li>\u786c\u4ef6\u5411\u91cf\u6cd5   \u7531<strong>\u786c\u4ef6<\/strong>\u4ea7\u751f<strong>\u5411\u91cf\u5730\u5740<\/strong>\uff0c\u518d\u7531<strong>\u5411\u91cf\u5730\u5740<\/strong>\u627e\u5230<strong>\u5165\u53e3\u5730\u5740<\/strong><\/li>\n<li>\u7531\u8f6f\u4ef6\u4ea7\u751f   \u8be6\u89c1<a href=\"https:\/\/blog.taiyang.space\/?p=197\">\u7b2c8\u7ae0<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u786c\u4ef6\u5411\u91cf\u6cd5<\/p>\n<p>\u5411\u91cf\u5730\u5740\uff1a\u7531\u4e2d\u65ad\u5411\u91cf\u5730\u5740\u5f62\u6210\u90e8\u4ef6\u6839\u636e\u6392\u961f\u5668\u7684\u8f93\u51fa\u751f\u6210\uff0c\u91cc\u9762\u5b58\u653e\u4f18\u5148\u7ea7\u9ad8\u7684\u8bbe\u5907\u5730\u5740\u6216\u8005\u662f\u8df3\u8f6c\u6307\u4ee4\uff0c\u518d\u6839\u636e\u8fd9\u4e2a\u8bbe\u5907\u5730\u5740\u627e\u5230\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42\u7684\u8bbe\u5907\u6216\u8005\u6267\u884c\u8df3\u8f6c\u6307\u4ee4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920658.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u5411\u91cf\u5730\u5740\u662f\u901a\u8fc7\u7cfb\u7edf\u603b\u7ebf\u4f20\u9001\u5230CPU\u4e2d<\/p>\n<p>\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920893.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u5411\u91cf\u5730\u574012H\u4e2d\u5b58\u653e\u7684\u662f\u4e00\u6761\u8df3\u8f6c\u6307\u4ee4\uff0c\u8df3\u8f6c\u5230200\u5904\uff0c\u6267\u884c\u6253\u5370\u673a\u670d\u52a1\u7a0b\u5e8f<\/p>\n<p>&nbsp;<\/p>\n<h4>4. \u7a0b\u5e8f\u4e2d\u65ad\u65b9\u5f0f\u63a5\u53e3\u7535\u8def\u7684\u57fa\u672c\u7ec4\u6210<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920049.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<h3>5.7.4 I\/O\u4e2d\u65ad\u5904\u7406\u8fc7\u7a0b<\/h3>\n<h4>1. CPU\u54cd\u5e94\u4e2d\u65ad\u7684\u6761\u4ef6\u548c\u65f6\u95f4<\/h4>\n<h5>\u6761\u4ef6<\/h5>\n<ul>\n<li>\u5141\u8bb8\u4e2d\u65ad\u89e6\u53d1\u5668EINT=1<\/li>\n<li>\u7528\u5f00\u4e2d\u65ad\u6307\u4ee4\u5c06EINT\u7f6e\u201c1\u201d<\/li>\n<li>\u7528\u5173\u4e2d\u65ad\u6307\u4ee4\u5c06EINT\u7f6e\u201c0\u201d\u6216\u786c\u4ef6<strong>\u81ea\u52a8\u590d\u4f4d<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h5>\u65f6\u95f4<\/h5>\n<ul>\n<li>\u5f53D=1\uff08\u968f\u673a\uff09\u4e14MASK= <strong>0<\/strong> \u65f6<\/li>\n<\/ul>\n<p>\u4e00\u822c\u5728\u6bcf\u6761\u6307\u4ee4\u6267\u884c\u9636\u6bb5\u7684\u7ed3\u675f\u524d\uff0cCPU\u4f1a\u53d1\u4e2d\u65ad\u67e5\u8be2\u4fe1\u53f7(\u5c06INTR\u7f6e &#8220;1&#8221; )<\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u5904\u7406\u8fc7\u7a0b<\/h4>\n<p>\u4ee5\u8f93\u5165\u4e3a\u4f8b:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920118.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.7.5 \u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u6d41\u7a0b<\/h3>\n<h4>1. \u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u7684\u6d41\u7a0b<\/h4>\n<ol start=\"\">\n<li>\u4fdd\u62a4\u73b0\u573a\n<ol start=\"\">\n<li>\u7a0b\u5e8f\u65ad\u70b9\u7684\u4fdd\u62a4        \u4e2d\u65ad\u9690\u6307\u4ee4\u5b8c\u6210<\/li>\n<li>\u5bc4\u5b58\u5668\u5185\u5bb9\u7684\u4fdd\u62a4    \u8fdb\u6808\u6307\u4ee4<\/li>\n<\/ol>\n<\/li>\n<li>\u4e2d\u65ad\u670d\u52a1\n<ol start=\"\">\n<li>\u5bf9\u4e0d\u540c\u7684I\/O\u8bbe\u5907\u5177\u6709\u4e0d\u540c\u5185\u5bb9\u7684\u8bbe\u5907\u670d\u52a1<\/li>\n<\/ol>\n<\/li>\n<li>\u6062\u590d\u73b0\u573a                            \u51fa\u6808\u6307\u4ee4<\/li>\n<li>\u4e2d\u65ad\u8fd4\u56de                            \u4e2d\u65ad\u8fd4\u56de\u6307\u4ee4<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>2. \u5355\u91cd\u4e2d\u65ad\u548c\u591a\u91cd\u4e2d\u65ad<\/h4>\n<ul>\n<li><strong>\u5355\u91cd\u4e2d\u65ad<\/strong>:<strong>\u4e0d\u5141\u8bb8\u4e2d\u65ad<\/strong>\u73b0\u884c\u7684<strong>\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f<\/strong><\/li>\n<li><strong>\u591a\u91cd\u4e2d\u65ad<\/strong>:<strong>\u5141\u8bb8\u7ea7\u522b\u66f4\u9ad8<\/strong>\u7684\u4e2d\u65ad\u6e90<strong>\u4e2d\u65ad<\/strong>\u73b0\u884c\u7684<strong>\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f  (\u4e2d\u65ad\u5d4c\u5957)<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>3. \u5355\u91cd\u4e2d\u65ad\u548c\u591a\u91cd\u4e2d\u65ad\u7684\u670d\u52a1\u7a0b\u5e8f\u6d41\u7a0b<\/h4>\n<h5>\u5355\u91cd\u4e2d\u65ad<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920169.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h5>\u591a\u91cd\u4e2d\u65ad<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920208.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>4. \u4e3b\u7a0b\u5e8f\u548c\u4e2d\u65ad\u7a0b\u5e8f\u62a2\u5360CPU\u793a\u610f\u56fe<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920346.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<ul>\n<li><strong>\u5b8f\u89c2\u4e0a<\/strong>CPU\u548cI\/O<strong>\u5e76\u884c<\/strong>\u5de5\u4f5c; I\/O\u4f20\u9001\u6570\u636e,CPU\u4e5f\u4f20\u9001\u6570\u636e<\/li>\n<li><strong>\u5fae\u89c2\u4e0a<\/strong>CPU\u4e2d<strong>\u65ad\u73b0\u884c\u7a0b\u5e8f<\/strong>\u4e3aI\/O\u670d\u52a1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>5.8 DMA\u65b9\u5f0f\u8be6\u89e3<\/h2>\n<h3>5.8.1 DMA\u65b9\u5f0f\u7684\u7279\u70b9<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920424.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u5916\u90e8\u8bbe\u5907\u901a\u8fc7DMA\u63a5\u53e3\u76f4\u63a5\u548c\u4e3b\u5b58\u8bbf\u95ee\uff0c\u4e0d\u901a\u8fc7CPU<\/p>\n<p>&nbsp;<\/p>\n<h3>5.8.2 DMA\u4e0e\u4e3b\u5b58\u4ea4\u6362\u6570\u636e\u7684\u4e09\u79cd\u65b9\u5f0f<\/h3>\n<h4>1. \u505c\u6b62CPU\u8bbf\u95ee\u4e3b\u5b58<\/h4>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u5f53\u6570\u636e\u8fdb\u884c\u4ea4\u6362\u7684\u65f6\u5019\uff0cCPU\u5c31\u653e\u5f03\u4e86\u5bf9\u5185\u5b58\u7684\u8bbf\u95ee\u3001\u4ee5\u53ca\u5bf9\u603b\u7ebf\u7684\u63a7\u5236\u6743\u3002\u5185\u5b58\u8bbf\u95ee\u548c\u603b\u7ebf\u63a7\u5236\u6743\u5168\u90e8\u8f6c\u4ea4\u7ed9DMA\u63a5\u53e3<\/p>\n<p>&nbsp;<\/p>\n<p>\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u63a7\u5236\u7b80\u5355<\/li>\n<li>CPU\u5904\u4e8e\u4e0d\u5de5\u4f5c\u72b6\u6001\u6216\u4fdd\u6301\u72b6\u6001<\/li>\n<li>\u672a\u5145\u5206\u53d1\u6325CPU\u5bf9\u4e3b\u5b58\u7684\u5229\u7528\u7387<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u56fe\u89e3\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920638.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u84dd\u7ebf\u8fd9\u6bb5\u90e8\u5206\u662fDMA\u5de5\u4f5c\uff0c\u4f46\u662f\u6709\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u6ca1\u6709\u8bbf\u95ee\u5185\u5b58\uff0c\u4e14CPU\u5df2\u5931\u53bb\u5bf9\u5185\u5b58\u7684\u8bbf\u95ee\u6743\uff0c\u4ece\u800c\u5bfc\u81f4\u672a\u5145\u5206\u53d1\u6325CPU\u5bf9\u4e3b\u5b58\u7684\u5229\u7528\u7387<\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u5468\u671f\u632a\u7528\uff08\u6216\u5468\u671f\u7a83\u53d6\uff09<\/h4>\n<p>\u5982\u679cDMA\u63a5\u53e3\u51c6\u5907\u597d\u4e86\u6570\u636e\u4f20\u8f93\uff0c\u90a3\u4e48DMA\u63a5\u53e3\u901a\u8fc7\u7533\u8bf7\u5efa\u7acb\u603b\u7ebf\u7684\u4f7f\u7528\u6743\uff0c\u5360\u7528\u4e00\u4e2a\u6216\u51e0\u4e2a\u5185\u5b58\u8bbf\u95ee\u5468\u671f\u5b8c\u6210\u6570\u636e\u7684\u4f20\u8f93\u3002\u5728\u6570\u636e\u4f20\u8f93\u7684\u95f4\u9694\u6216\u8005\u6570\u636e\u7684\u51c6\u5907\u9636\u6bb5\uff0cDMA\u63a5\u53e3\u653e\u5f03\u5bf9\u5185\u5b58\u7684\u4f7f\u7528\u6743\u3001\u653e\u5f03\u5bf9\u5185\u5b58\u7684\u5360\u7528<\/p>\n<p>&nbsp;<\/p>\n<p>DMA\u8bbf\u95ee\u4e3b\u5b58\u6709\u4e09\u79cd\u53ef\u80fd<\/p>\n<ul>\n<li>CPU\u6b64\u65f6\u4e0d\u8bbf\u5b58      \u8fd9\u65f6\u5019DMA\u63a5\u53e3\u53ef\u4ee5\u8bbf\u95ee\u5185\u5b58<\/li>\n<li>CPU\u6b63\u5728\u8bbf\u5b58\u3000\u3000\u8fd9\u65f6\u5019DMA\u63a5\u53e3\u4e0d\u80fd\u8bbf\u95ee\u5185\u5b58\uff0c\u4e0d\u80fd\u62a2\u5360\u603b\u7ebf<\/li>\n<li>CPU\u548cDMA<strong>\u540c\u65f6\u8bf7\u6c42\u8bbf\u5b58<\/strong>  \u8fd9\u65f6\u5019CPU\u5c06\u603b\u7ebf\u63a7\u5236\u6743\u8ba9\u7ed9DMA,\u56e0\u4e3aDAM\u4e0a\u8fde\u63a5\u7684\u90fd\u662f\u9ad8\u901f\u8bbe\u5907,\u5982\u679c\u4e0d\u54cd\u5e94\u53ef\u80fd\u4f1a\u9020\u6210\u6570\u636e\u4e22\u5931<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u56fe\u89e3:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920692.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>3. DMA\u4e0eCPU\u4ea4\u66ff\u8bbf\u95ee<\/h4>\n<p>\u628a\u5de5\u4f5c\u5468\u671f\u5206\u4e3a 2 \u4e2a\u5468\u671f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920731.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u56fe\u89e3:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920868.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u6bcf\u4e2a\u5de5\u4f5c\u5468\u671f\u5206\u4e3a 2 \u4e2a\u5468\u671f,\u4e00\u4e2a\u4f9bDMA\u4f7f\u7528,\u4e00\u4e2a\u4f9bCPU\u4f7f\u7528<\/p>\n<p>\u4e0d\u9700\u8981\u7533\u8bf7<strong>\u5efa\u7acb<\/strong>\u548c<strong>\u5f52\u8fd8<\/strong>\u603b\u7ebf\u7684\u4f7f\u7528\u6743<\/p>\n<p>&nbsp;<\/p>\n<h3>5.8.3 DMA\u63a5\u53e3\u7684\u529f\u80fd\u548c\u7ec4\u6210<\/h3>\n<h4>1. \u529f\u80fd<\/h4>\n<ul>\n<li>\u5411CPU<strong>\u7533\u8bf7<\/strong>DMA\u4f20\u9001<\/li>\n<li>\u5904\u7406\u603b\u7ebf<strong>\u63a7\u5236\u6743\u7684\u8f6c\u53d8<\/strong><\/li>\n<li><strong>\u7ba1\u7406<\/strong>\u7cfb\u7edf\u603b\u7ebf\u3001<strong>\u63a7\u5236<\/strong>\u6570\u636e\u4f20\u9001<\/li>\n<li>\u786e\u5b9a\u6570\u636e\u4f20\u9001\u7684<strong>\u9996\u5730\u5740\u548c\u957f\u5ea6<\/strong><\/li>\n<li>\n<ul>\n<li>\u4fee\u6b63\u4f20\u9001\u8fc7\u7a0b\u4e2d\u6570\u636e\u5730\u5740\u548c\u957f\u5ea6<\/li>\n<\/ul>\n<\/li>\n<li>DMA\u4f20\u9001\u7ed3\u675f\uff0c\u7ed9\u51fa\u64cd\u4f5c\u5b8c\u6210\u4fe1\u53f7<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>2. \u7ec4\u6210<\/h4>\n<p>\u5047\u8bbe\u4ee5\u5355\u603b\u7ebf\u7ed3\u6784\u4e3a\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920870.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<ul>\n<li>AR\uff1aAddress Register<\/li>\n<li>WC\uff1aWord Count \uff08\u4e0d\u662f\u5395\u6240\uff01\uff09<\/li>\n<li>DAR\uff1aDevice Adress Register<\/li>\n<li>BR\uff1aBuffer Register<\/li>\n<li>DREQ\uff1aDevice Request<\/li>\n<li>DACK\uff1aDevice Acknowledgment<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>5.8.4 DMA\u5de5\u4f5c\u8fc7\u7a0b<\/h3>\n<ol start=\"\">\n<li>\u9884\u5904\u7406<\/li>\n<li>\u6570\u636e\u4f20\u9001<\/li>\n<li>\u540e\u5904\u7406<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>1.\u9884\u5904\u7406\uff1a<\/h4>\n<p>\u901a\u8fc7\u51e0\u6761\u8f93\u5165\u8f93\u51fa\u6307\u4ee4\u9884\u7f6e\u5982\u4e0b\u4fe1\u606f<\/p>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u901a\u77e5DMA\u63a7\u5236\u903b\u8f91\u4f20\u9001\u65b9\u5411\uff08\u5165\/\u51fa\uff09<\/li>\n<li>\u8bbe\u5907\u5730\u5740\u2014&gt;DMA\u7684DAR<\/li>\n<li>\u4e3b\u5b58\u5730\u5740\u2014&gt;DMA\u7684AR<\/li>\n<li>\u4f20\u9001\u5b57\u6570\u2014&gt;DMA\u7684WC<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>2. \u6570\u636e\u4f20\u9001<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920981.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u6570\u636e\u8f93\u5165\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920070.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u6570\u636e\u8f93\u51fa\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920142.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>3. \u540e\u5904\u7406<\/h4>\n<p>\u540e\u5904\u7406\u7684\u76ee\u7684\uff1a<\/p>\n<ul>\n<li>\u6821\u9a8c\u9001\u5165\u4e3b\u5b58\u7684\u6570\u662f\u5426\u6b63\u786e<\/li>\n<li>\u662f\u5426\u7ee7\u7eed\u4f7f\u7528DMA<\/li>\n<li>\u6d4b\u8bd5\u4f20\u9001\u8fc7\u7a0b\u662f\u5426\u6b63\u786e\uff0c\u9519\u5219\u8f6c\u8bca\u65ad\u7a0b\u5e8f<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u5b8c\u6574\u8fc7\u7a0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920194.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.8.5 DMA\u63a5\u53e3\u4e0e\u7cfb\u7edf\u7684\u8fde\u63a5\u65b9\u5f0f<\/h3>\n<h4>1. \u5177\u6709\u516c\u5171\u8bf7\u6c42\u7ebf\u7684DMA\u8bf7\u6c42<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920265.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u72ec\u7acb\u7684DMA\u8bf7\u6c42<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920323.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>5.8.9 DMA\u63a5\u53e3\u7684\u7c7b\u578b<\/h3>\n<h4>1. \u9009\u62e9\u578b<\/h4>\n<p>\u5728<strong>\u7269\u7406<\/strong>\u4e0a\u8fde\u63a5<strong>\u591a\u4e2a<\/strong>\u8bbe\u5907<\/p>\n<p>\u5728<strong>\u903b\u8f91<\/strong>\u4e0a\u53ea\u5141\u8bb8\u8fde\u63a5<strong>\u4e00\u4e2a<\/strong>\u8bbe\u5907<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920601.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>2. \u591a\u8def\u578b<\/h4>\n<p>\u5728<strong>\u7269\u7406<\/strong>\u4e0a\u8fde\u63a5<strong>\u591a\u4e2a<\/strong>\u8bbe\u5907<\/p>\n<p>\u5728<strong>\u903b\u8f91<\/strong>\u4e0a\u5141\u8bb8\u8fde\u63a5<strong>\u591a\u4e2a<\/strong>\u8bbe\u5907\u540c\u65f6\u5de5\u4f5c<\/p>\n<p>\u4f46\u5728\u6570\u636e\u4f20\u8f93\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ea\u5141\u8bb8\u6709\u4e00\u4e2a\u8bbe\u5907\u548c\u5185\u5b58\u8fdb\u884c\u4f20\u8f93\uff0c\u4f46\u662f\u5728\u6570\u636e\u51c6\u5907\u9636\u6bb5\u5141\u8bb8\u6709\u591a\u4e2a\u8bbe\u5907\u540c\u65f6\u8fdb\u884c\u6570\u636e\u51c6\u5907<\/p>\n<p>&nbsp;<\/p>\n<h2>5.9 DMA\u65b9\u5f0f\u548c\u7a0b\u5e8f\u4e2d\u65ad\u65b9\u5f0f\u6bd4\u8f83<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920486.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u6587\u5b8c<\/p>\n<p>\u656c\u7231\u4e0e\u660e\u5929\ud83c\udf39<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51af.\u8bfa\u4f9d\u66fc\u8ba1\u7b97\u673a\u7ed3\u6784\u4e2d\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\uff0c\u4ee5\u53ca\u7a0b\u5e8f\u4e2d\u65ad\u3001DMA\u7b80\u8ff0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[65,63,64,35],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-14","tag-dma","tag-i-o","tag-64","tag-35"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.taiyang.space\/?p=190\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u51af.\u8bfa\u4f9d\u66fc\u8ba1\u7b97\u673a\u7ed3\u6784\u4e2d\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\uff0c\u4ee5\u53ca\u7a0b\u5e8f\u4e2d\u65ad\u3001DMA\u7b80\u8ff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.taiyang.space\/?p=190\" \/>\n<meta property=\"og:site_name\" content=\"#\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-29T01:32:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-11T06:26:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picture.chentaiyang.space\/PicGo202209290920206.png\" \/>\n<meta name=\"author\" content=\"taiyang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"taiyang\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=190#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=190\"},\"author\":{\"name\":\"taiyang\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"headline\":\"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\",\"datePublished\":\"2022-09-29T01:32:02+00:00\",\"dateModified\":\"2022-11-11T06:26:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=190\"},\"wordCount\":317,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"keywords\":[\"DMA\",\"I\/O\u8bbe\u5907\",\"\u7a0b\u5e8f\u4e2d\u65ad\",\"\u8ba1\u7ec4\"],\"articleSection\":[\"\u8ba1\u7b97\u673a\u7ec4\u6210\u539f\u7406\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=190#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=190\",\"url\":\"https:\/\/blog.taiyang.space\/?p=190\",\"name\":\"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/#website\"},\"datePublished\":\"2022-09-29T01:32:02+00:00\",\"dateModified\":\"2022-11-11T06:26:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=190#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=190\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=190#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.taiyang.space\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.taiyang.space\/#website\",\"url\":\"https:\/\/blog.taiyang.space\/\",\"name\":\"#\u762b\u7537\u65e5\u8bb0\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.taiyang.space\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\",\"name\":\"taiyang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"contentUrl\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"width\":612,\"height\":640,\"caption\":\"taiyang\"},\"logo\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/blog.taiyang.space\"],\"url\":\"https:\/\/blog.taiyang.space\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.taiyang.space\/?p=190","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0","og_description":"\u51af.\u8bfa\u4f9d\u66fc\u8ba1\u7b97\u673a\u7ed3\u6784\u4e2d\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf\uff0c\u4ee5\u53ca\u7a0b\u5e8f\u4e2d\u65ad\u3001DMA\u7b80\u8ff0","og_url":"https:\/\/blog.taiyang.space\/?p=190","og_site_name":"#\u762b\u7537\u65e5\u8bb0","article_published_time":"2022-09-29T01:32:02+00:00","article_modified_time":"2022-11-11T06:26:50+00:00","og_image":[{"url":"https:\/\/picture.chentaiyang.space\/PicGo202209290920206.png"}],"author":"taiyang","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"taiyang","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.taiyang.space\/?p=190#article","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/?p=190"},"author":{"name":"taiyang","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"headline":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf","datePublished":"2022-09-29T01:32:02+00:00","dateModified":"2022-11-11T06:26:50+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.taiyang.space\/?p=190"},"wordCount":317,"commentCount":0,"publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"keywords":["DMA","I\/O\u8bbe\u5907","\u7a0b\u5e8f\u4e2d\u65ad","\u8ba1\u7ec4"],"articleSection":["\u8ba1\u7b97\u673a\u7ec4\u6210\u539f\u7406"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.taiyang.space\/?p=190#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.taiyang.space\/?p=190","url":"https:\/\/blog.taiyang.space\/?p=190","name":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf - #\u762b\u7537\u65e5\u8bb0","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/#website"},"datePublished":"2022-09-29T01:32:02+00:00","dateModified":"2022-11-11T06:26:50+00:00","breadcrumb":{"@id":"https:\/\/blog.taiyang.space\/?p=190#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.taiyang.space\/?p=190"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.taiyang.space\/?p=190#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.taiyang.space\/"},{"@type":"ListItem","position":2,"name":"\u7b2c5\u7ae0-\u8f93\u5165\u8f93\u51fa\u7cfb\u7edf"}]},{"@type":"WebSite","@id":"https:\/\/blog.taiyang.space\/#website","url":"https:\/\/blog.taiyang.space\/","name":"#\u762b\u7537\u65e5\u8bb0","description":"","publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.taiyang.space\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c","name":"taiyang","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/","url":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","contentUrl":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","width":612,"height":640,"caption":"taiyang"},"logo":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/blog.taiyang.space"],"url":"https:\/\/blog.taiyang.space\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190"}],"version-history":[{"count":5,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions\/326"}],"wp:attachment":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}