The Design and Implementation of Memory Protection Mechanism in Auto-electronic OS

Author
YanLiMing
Advisor
LuoLei
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
U463.6 Electrical equipment and accessories
Degree
Master's thesis
Year
2013
Downloads
9
Citations
0

Request the full text

Abstract

For the purpose of meeting the development demand of the modern automotiveelectronic industry, AUTOSAR organization is responsible for laying down the newstandards for the future automotive system. AUTOSAR OS is an embedded operatingsystem which is in full compliance with the design and implementation of theAUTOSAR specification, and it is back-compatible with the automotive electronicembedded OS based on OSEK. Many features have been added to OSEK byAUTOSAR, and the memory protection mechanism is one of the most importantextensions. With the assistance of the memory protection, the system can become morereliable and stable so that more complicated applications can be supported. Indubiously,it will pave the way for the automotive electronic system to meet the new demand. Inorder to realize the memory protection, a thorough analysis had been conducted on thememory protection requirements of the AUTOSAR OS, and then the memoryprotection mechanism had been designed and realized based on the original laboratorialeAutoOSEK. The design and implementation of the memory protection mechanismconsist of the following two parts:Based on the requirements of the memory protection by the AUTOSAR OSspecification and the OS-Application mechanism, the application model of thememory protection have been put forward. Within the AUTOSAR OS,OS-application is the resource management unit and the isolated and protectedregion for programs on memory space. By implementing the OS-applicationmechanism, the domain mechanism can be supported by the OS. The goal of thememory protection is to achieve the isolation beween trusted and untrustedOS-applications, and the isolation between OS-applications within the untrusteddomin, so that memory access faults within an untrusted OS-application can notcorrupt the normal function of the other OS-applications.In order to satisfy the memory access isolation and protection between domains insystem, the design of the infrastructure of the memory protection mechanism havebeen achieved based on the original OSEK OS. The basic function of the memory protection has been fulfilled by implementing the MMU management sub-system,so that the TLB initialization and TLB miss and illegal access exception can bedealt with. In order to implement the switch between domains, the process of theswitch and dispatch between runnables have been redesigned, so that the run-timeenvironment can be set according to the target domain. By designing andimplementing the system call and trusted function mechanisms, the user programsunder the user mode can access the system services.The innovative point of the design can be attributed to the domain based memoryprotection implemented according to the OS-application, so the reliability and safetyhave been reached.

Table of contents

Summary 5-6 ABSTRACT 6-12 first chapter 12-17 1.1 Background 12-13 <br / > 1.2 significance 13-14 1.3 embedded real-time systems development home and abroad memory protection mechanisms 14-15 1.3.1 ARINC 653 standard 14 1.3.2 development of automotive electronics storage protection technology 14-15 1.4 the main work and structural arrangements 15-17 chapter related work background 17-32 2.1 kernel mode and user mode 17-18 2.2 concepts embedded memory of 18-28 2.2.1 storage map 18 2.2.2 embedded development features 18-20 development nbsp 2.2.2.1 Desktop environment ; 19 2.2. 2.2 embedded development environment 19-20 2.2.3 without memory protection system problems 20-22 2.2.4 Memory Protection 22 -28 2.2.4.1 MPU / MMU 22-27 2.2.4.2 domain- based memory protection 27-28 2.3 OSEK - the foundation of AUTOSAR 28-29 2.4 AUTOSAR OS 29-31 2.5 Summary 31-32 the third chapter based on AUTOSAR OS standard memory protection mechanisms in general features 34 3.1.2 isolation protection ; design 32-44 3.1 AUTOSAR OS application model 33-35 3.1.1 protection level nbsp 34-35 3.2 overall design 35-39 3.2.1 based protection domains 35-38 3.2.2 on demand OS208 and OS209 38-39 3.3 OS application design and implementation 39-43 3.3.1 data Structure 39-41 3.3.2 functional interface 41-43 3.4 Summary 43-44 Chapter IV memory protection mechanisms underlying the design and implementation of 44-82 4.1 Overview design and implementation 44-45 4.2 MMU management subsystem divided 45-61 4.2.1 domain storage space 45-52 4.2.1.1 target file input segment is divided 46-49 4.2.1.2 script files are stored using the link zoning checking nbsp 49-52 4.2.1.3 storage access ; 52 4.2.2 page table 52-57 4.2.2.1 page table design 52-54 4.2.2.2 index page table Kazakhstan Greek table 54-57 4.2.3 MMU management 57-61 4.2.3.1 MMU management subsystem initialization 57 4.2.3.2 TLB miss exception handling 57-59 4.2.3.3 illegal memory access processing design 59-61 4.3 task management subsystem and implementation 61 - 65 4.3.1 Overview 61-62 4.3.2 task stack design 62-63 task context switching nbsp 4.3.3 ; 63 -65 4.4 interrupt subsystem design and implementation of 65-72 4.4.1 Overview 65 4.4.2 interrupted divided stack 65 -66 4.4.3 interrupt handling design 66-72 4.4.3.1 interrupt handler 66-68 4.4.3.2 interface function OSInt 68-70 4.4.3.3 interrupt processing examples 70-72 4.5 system call subsystem design and implementation 72-77 4.5.1 Overview 72 4.5.2 implementation analysis 72-73 4.5.2.1 static table 73 4.5.2.2 dynamic table 73 4.5.2.3 function pointer achieve 73 4.5.3 function pointers 73-77 design nbsp 4.5.3.1 interface functions ; 74-76 4.5.3.2 system call exception handler design 76-77 4.6 credible function design and implementation 77-81 4.6.1 Overview 77-78 4.6.2 credible function call mechanism 78-81 Interface nbsp 4.6.2.1 credible function ; 78-79 4.6. 2.2 CallTrustedFunction 79-80 4.6.2.3 credible function table 80-81 4.6.2.4 credible function 81 4.7 Summary 81-82 Chapter V system testing 82-89 5.1 Overview 82-83 5.2 test system 83-85 5.3 test results 85-89 sixth chapter summarizes 89-90 6.1 summary 89 6.2 insufficient and Prospects 89-90 Thanks 90-91 References 91-94

Related dissertations

  1. Design and implementation of AUTOSAR OS and TMS470 transplantation
  2. Research on Memory Protection of Windows Application
    MaJianKun ·Nanjing University ·2011 ·Master's thesis
  3. Development of High Performance ECU Platform and Its Application Research
    XuShuaiQing ·Tianjin University ·2012 ·Doctoral dissertation
  4. Design of Body Control Module's Communication Protocol Stack
    YuanKe ·Hunan University ·2012 ·Master's thesis
  5. Research of Real-time Scheduling and Network Management on FlexRay Bus System
    TianXiao ·Hefei University of Technology ·2013 ·Master's thesis
  6. Automotive Body Controller Software System Design and Development of PC Diagnostic Software
    MengBuMin ·Hunan University ·2011 ·Master's thesis
  7. Research and implementation of FlexRay bus communication protocol based on AUTOSAR
  8. Research and Implementation on OSEK Network Management in FlexRay Bus
    GuJianWei ·Hefei University of Technology ·2012 ·Master's thesis
  9. Research and implementation of the communication module based on AUTOSAR
  10. Memory Management of an ARM-based Embedded Real-Time Operating System
  11. Research on AUTOSAR OS Specification and Implementation in μC/OS-Ⅱ
    OuShiZuo ·Hefei University of Technology ·2012 ·Master's thesis
  12. Research and Implementation on Performance and Architecture Optimization of Finacial-Oriented Java Card
    CaoXiao ·Zhejiang University ·2012 ·Master's thesis
  13. Design and Implementation of an Automotive Embedded Real-time Operating System Kernel
    ZhangRan ·Hunan University ·2012 ·Master's thesis
  14. Research on environmental bus electronic virtual function application development
  15. Research and design of AUTOSAR software component running entity mapping model
  16. Research and implementation of automotive electronic communication platform based on Model
  17. The research on safety monitoring technology based on Virtualization
  18. Study and Implementation of an MMU Based Communication Mechanism for Dynamic Reconfigurable Systems
    LiYueLin ·Northeastern University ·2009 ·Master's thesis
  19. The Circuit Design and Realizion of Cache and MMU Based on ARM9
  20. Research of CAN Network Management Based on AUTOSAR
    YuPing ·Hefei University of Technology ·2013 ·Master's thesis