- 4
- 0
- 约3.57万字
- 约 72页
- 2019-01-27 发布于浙江
- 举报
嵌入式處理器架構與程式設計 王建民 中央研究院 資訊所 2008年 7月 Contents Introduction Computer Architecture ARM Architecture Development Tools GNU Development Tools ARM Instruction Set ARM Assembly Language ARM Assembly Programming GNU ARM ToolChain Interrupts and Monitor Lecture 10Interrupts and Monitor Outline Exception Handling and Software Interrupts ELF: Executable and Linking Format ARM Monitor and Program Loading Normal Program Flow vs. Exception Normally, programs execute sequentially (with a few branches to make life interesting) Normally, programs execute in user mode Exceptions and interrupts break the sequential flow of a program, jumping to architecturally-defined memory locations In ARM, SoftWare Interrupt (SWI) is the “system call” exception ARM Exceptions Types of ARM exceptions Reset: when CPU reset pin is asserted undefined instruction: when CPU tries to execute an undefined op-code software interrupt: when CPU executes the SWI instruction prefetch abort: when CPU tries to execute an instruction pre-fetched from an illegal address data abort: when data transfer instruction tries to read or write at an illegal address IRQ: when CPUs external interrupt request pin is asserted FIQ: when CPUs external fast interrupt request pin is asserted The Programmer’s Model Processor Modes (of interest) User: the “normal” program execution mode. IRQ: used for general-purpose interrupt handling. Supervisor: a protected mode for the operating system. The Register Set Registers R0-R15 + CPSR R13: Stack Pointer (by convention) R14: Link Register (hardwired) R15: Program Counter where bits 0:1 are ignored (hardwired) Terminology The terms exception and interrupt are often confused Exception usually refers to an internal CPU event floating point overflow MMU fault (e.g., page fault) trap (SWI) Interrupt usually refers to an external I/O event I/O device request reset In the ARM architecture manuals, the two terms are mixed together What do SWIs do? SWIs (often called software tra
您可能关注的文档
最近下载
- 直击中考---VB题库训练(1月30日).docx VIP
- 110kV武骏专用变电站工程--110kV电容式电压互感器招标文件(技术规范专用部分).doc VIP
- 各场所高压线的标准规范..pdf VIP
- 16S401管道和设备保温、防结露及电伴热.doc VIP
- 2026人教版小学三年级上册数学期末考试3套试卷(打印版含答案解析).docx
- 市场监管党组书记2025年度民主生活会个人对照检查发言材料(五个带头).docx VIP
- 直击中考---七年级上册1-3课题库训练(1月31日).docx VIP
- 小区物业装饰装修管理方案.docx VIP
- 物业公司“危险源”识别和管控归纳表.docx VIP
- 中国饮食文化——《全国导游基础知识》习题集.docx VIP
原创力文档

文档评论(0)