- 1、本文档共59页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
在虚拟机中编程实现IO中断处理机制
毕业设计(论文)
题 目 在虚拟机中编程实现I/O
中断处理机制
专 业 计算机科学与技术
学 号
学 生
指 导 教 师
答 辩 日 期 2008年6月23日
摘 要
本论文主要研究了中断处理机制,并在此基础上实现了键盘驱动程序。
在实现中断处理机制的过程中,首先介绍了中断及中断源的概念,分析了中断的处理流程;其次介绍了中断处理机制的硬件和软件实现过程,其中硬件方面主要介绍了8259A的内部结构,工作原理及相关配置;软件方面主要介绍了中断描述符表IDT的建立过程。
在实现键盘驱动程序的过程中,主要介绍了键盘的内部结构及工作原理,建立了扫描码表数组,总结了键盘的工作过程,并实现了对键盘上单键和复合键的响应。
在分析中断处理机制的过程,发现了Linux 2.6.25内核中断部分关于s3c2410上的DMA通道映射的上的一个bug,并实际的调试跟踪了相应的内核源码,解决了这个bug。
关键词 中断;8259A;中断描述符;扫描码
Abstract
This paper mostly researchs the interrupt handing mechanism, on the basis of which, realizes the keyboard driver.
In the process of realizing the interrupt handing mechanism, firstly, it introduces the conception of interrupt and interrupt source, and analyses the flow of interrupt handing. Secondly, it introduces the process of achieving the hardware and software in the interrupt handing mechanism, of which, mostly describes the internal structure, operational principle and configure in the 8259A, then, describes the build process of the Interrupt Descriptor Table IDT.
In the process of realizing the keyboard driver, it describes the internal structure and operational principle of the keyboard, and sets up scan code table array, then sums up the working process of the keyboard and achieves the responding of the single and complex keys.
Finally, it discovers a bug in the 2.6.25 kernel , which is about DMA channel mapping on the s3c2410 board, and debug the kernel code , then resolves the bug.
Key words interrupt 8259A interrupt descriptor scan code
不要删除行尾的分节符,此行不会被打印目 录
摘 要 I
Abstract II
第1章 绪论 1
1.1 课题背景 1
1.2 课题来源、目的和意义 1
1.2.1 课题来源 1
1.2.2 课题目的和意义 1
1.3 主要研究内容 2
1.4 本文结构 2
第2章 中断概论 3
2.1 中断简介 3
2.1.1 中断的概念及作用 3
2.1.2 中断源 3
2.2 I/O中断的处理过程 4
2.2.1 标志寄存器IF位 4
2.2.2 中断处理流程 4
2.3 本章小结 6
第3章 中断处理机制的实现 7
3.1 中断机制硬件部分实现 7
3.1.1 8259A简述 7
3.1.2 8259A工作原理 10
3.1.3 8259A相关配置 11
3.2 中断机制软件部分实现 16
3.2.1 保护模式简述 16
3.2.2 中断描述符表IDT 17
3.2.3 编程实
您可能关注的文档
- 关于厦门银鹭集团品牌经营管理的探讨 外文参考文献译文及原文doc.doc
- 关于合并财务报表中的商誉问题研究 外文原文.doc
- 关于合并财务报表中的商誉问题研究 文献综述.doc
- 关于基层妇联工作调查报告(必威体育精装版版).doc
- 关于增值税的税收筹划认识与思考 外文原文.doc
- 关于增值税的税收筹划认识与思考 文献综述.doc
- 关于大型地网接地阻抗的测量和安全判据.doc
- 关于大学生创业调查报告(必威体育精装版版).doc
- 关于如何提高学生的信息素养的一些建议.doc
- 关于实习生教育调查报告(必威体育精装版版).doc
- 英语人教PEP版八年级(上册)Unit4+writing+写作.pptx
- 人美版美术四年级(上册)8 笔的世界 课件 (1).pptx
- 人美版美术七年级(上册)龙的制作.pptx
- 英语人教PEP版六年级(上册)Unit 2 第一课时.pptx
- 数学苏教版三年级(上册)3.3 长方形和正方形周长的计算 苏教版(共12张PPT).pptx
- 音乐人教版八年级(上册)青春舞曲 课件2.pptx
- 音乐人教版四年级(上册) 第一单元 音乐知识 附点四分音符|人教版.pptx
- 英语人教PEP版四年级(上册)Unit 6 Part B let's learn 1.pptx
- 道德与法治人教版二年级(上册)课件-3.11大家排好队部编版(共18张PPT).pptx
- 人美版美术七年级(上册)《黄山天下奇》课件1.pptx
文档评论(0)