📄 memmodel.t
字号:
@c@c COPYRIGHT (c) 1988-2002.@c On-Line Applications Research Corporation (OAR).@c All rights reserved.@c@c $Id: memmodel.t,v 1.6 2002/01/17 21:47:46 joel Exp $@c@chapter Memory Model@section IntroductionA processor may support any combination of memorymodels ranging from pure physical addressing to complex demandpaged virtual memory systems. RTEMS supports a flat memorymodel which ranges contiguously over the processor's allowableaddress space. RTEMS does not support segmentation or virtualmemory of any kind. The appropriate memory model for RTEMSprovided by the targeted processor and related characteristicsof that model are described in this chapter.@section Flat Memory ModelRTEMS supports applications in which the applicationand the executive execute within a single thirty-two bit addressspace. Thus RTEMS and the application share a common fourgigabyte address space within a single space. The PA-RISCautomatically converts every address from a logical to aphysical address each time it is used. The PA-RISC usesinformation provided in the page table to perform thistranslation. The following protection levels are assumed:@itemize @bullet@item a single code segment at protection level (0) whichcontains all application and executive code.@item a single data segment at protection level zero (0) whichcontains all application and executive data.@end itemizeThe PA-RISC space registers and associated stack --including the stack pointer r27 -- must be initialized when theinitialize_executive directive is invoked. RTEMS treats thespace registers as system resources shared by all tasks and doesnot modify or context switch them.This memory model supports a flat 32-bit addressspace with addresses ranging from 0x00000000 to 0xFFFFFFFF (4gigabytes). Each address is represented by a 32-bit value andmemory is addressable. The address may be used to reference asingle byte, half-word (2-bytes), or word (4 bytes).RTEMS does not require that logical addresses mapdirectly to physical addresses, although it is desirable in manyapplications to do so. RTEMS does not need any additionalinformation when physical addresses do not map directly tophysical addresses. By not requiring that logical addresses mapdirectly to physical addresses, the memory space of an RTEMSspace can be separated from that of a ROM monitor. For example,a ROM monitor may load application programs into a separatelogical address space from itself.RTEMS assumes that the space registers contain theselector for the single data segment when a directive isinvoked. This assumption is especially important whendeveloping interrupt service routines.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -