节点文献

对嵌入式系统中内存保护的研究及其设计

The Research and Design about Memory Protecting in Embedded Computers

【作者】 周念念

【导师】 李涛;

【作者基本信息】 四川大学 , 计算机软件与理论, 2006, 硕士

【摘要】 简洁而高效的内存管理是操作系统理论及其设计实现中一个恒久的话题。操作系统发展至今,从当初简单的前后台系统到如今复杂的多用户多任务环境,内存管理的完善与否一直是评价一个操作系统好坏的重要标准。在当今大多数的主机操作系统中(服务器和PC机),内存管理都已实现的相当完善,不管是UNIX家族或者Windows系列,虚拟内存的设计思想被广泛应用于内存管理之中,不仅为系统中每一个进程提供了更为广阔的寻址空间同时也隔离每一个进程的寻址空间,通过地址映射的方式提供了一种有效的保护,让整个系统更加稳定,安全和健壮。但是在嵌入式世界中,由于硬件资源受限以及实时性等多方面的原因,大多数系统中的内存管理都相当简单,所有的进程或任务和操作系统共享同样的物理地址空间并且没有任何保护机制。这样,一个进程出现了程序错误极可能影响到其他进程的运行,甚至很多时候破坏操作系统的运行空间导致整个系统的崩溃。更为糟糕的是在这样一个扁平模式的内存中,开发调试人员很难准确的定位究竟哪个程序才是造成错误的‘真凶’。本文在分析了主机操作系统的内存管理后,将主机系统和嵌入系统在运行环境,系统资源,系统任务等多方面进行了对比,阐明了不能直接使用虚拟内存管理的原因,同时明确了在嵌入式系统中对内存保护的需求。在此基础上本文提出了一种在不改变原有操作系统内存管理格局的前提下,用软硬件相结合的方式对系统内存进行保护的新方法。在这种方法的保护下,系统中所有的进

【Abstract】 How to manage the memory tersely and efficiently is a lasting topic in the theory and design of computer operating system (OS). As far as now, the OS have become an administrator of a system which has multi-users and multi- tasks at the same time from a simple fore-back ground software. In the process of OS development, whether the memory management is perfect is always an import standard to verify a OS excellent or terrible.Now, the most OS on host computer, server and PC, has a perfect memory management sub-system, whatever in UNIX series or in Window family, which adopt the design of virtual memory widely to provide a huge and separate address space for every process and protect the memory by address mapping. So the whole system becomes stable, secure and lusty.But in the embedded computer world, the most of embedded OS has a simple even rough memory management sub-system for the limit hardware resource and the requirement of real time. In the system, all processes or tasks share the whole physical memory space directly in a flat model. So, very possibly, one process or task with some program bug would impact the other process or task’s work, even destroy OS’s kernel area and crash the whole system. More terribly, within the flat

  • 【网络出版投稿人】 四川大学
  • 【网络出版年期】2007年 02期
  • 【分类号】TP316
  • 【被引频次】3
  • 【下载频次】267
节点文献中: