UEFI Memory Type Description

8 篇文章 4 订阅
2 篇文章 0 订阅

 Enumeration of memory types introduced in UEFI.                                                                                                                    

 22 typedef enum {                                                                       

 23   ///                                                                                

 24   /// Not used.                                                                      

 25   ///                                                                                

 26   EfiReservedMemoryType,                                                             

 27   ///                                                                                

 28   /// The code portions of a loaded application.                                      

 29   /// (Note that UEFI OS loaders are UEFI applications.)                             

 30   ///                                                                                

 31   EfiLoaderCode,                                                                      

 32   ///                                                                                

 33   /// The data portions of a loaded application and the default data allocation      

 34   /// type used by an application to allocate pool memory.                           

 35   ///                                                                                

 36   EfiLoaderData,                                                                     

 37   ///                                                                                 

 38   /// The code portions of a loaded Boot Services Driver.                            

 39   ///                                                                                

 40   EfiBootServicesCode,                                                               

 41   ///                                                                                

 42   /// The data portions of a loaded Boot Serves Driver, and the default data         

 43   /// allocation type used by a Boot Services Driver to allocate pool memory.        

 44   ///                                                                                

 45   EfiBootServicesData,                                                                

 46   ///                                                                                

 47   /// The code portions of a loaded Runtime Services Driver.                         

 48   ///                                                                                 

 49   EfiRuntimeServicesCode,                                                            

 50   ///                                                                                

 51   /// The data portions of a loaded Runtime Services Driver and the default          

 52   /// data allocation type used by a Runtime Services Driver to allocate pool memory.

 53   ///                                                                                

 54   EfiRuntimeServicesData,                                                            

 55   ///                                                                                

 56   /// Free (unallocated) memory.                                                      

 57   ///                                                                                

 58   EfiConventionalMemory,                                                             

 59   ///                                                                                 

 60   /// Memory in which errors have been detected.                                     

 61   ///                                                                                         

 62   EfiUnusableMemory,                                                                           

 63   ///                                                                                         

 64   /// Memory that holds the ACPI tables.                                                       

 65   ///                                                                                         

 66   EfiACPIReclaimMemory,                                                                       

 67   ///                                                                                          

 68   /// Address space reserved for use by the firmware.                                         

 69   ///                                                                                         

 70   EfiACPIMemoryNVS,                                                                           

 71   ///                                                                                         

 72   /// Used by system firmware to request that a memory-mapped IO region                       

 73   /// be mapped by the OS to a virtual address so it can be accessed by EFI runtime services. 

 74   ///                                                                                         

 75   EfiMemoryMappedIO,                                                                          

 76   ///                                                                                         

 77   /// System memory-mapped IO region that is used to translate memory                         

 78   /// cycles to IO cycles by the processor.                                                   

 79   ///                                                                                         

 80   EfiMemoryMappedIOPortSpace,                                                                 

 81   ///                                                                                         

 82   /// Address space reserved by the firmware for code that is part of the processor.          

 83   ///                                                                                         

 84   EfiPalCode,                                                                                 

 85   ///                                                                                         

 86   /// A memory region that operates as EfiConventionalMemory,                                 

 87   /// however it happens to also support byte-addressable non-volatility.                     

 88   ///                                                                                         

 89   EfiPersistentMemory,                                                                        

 90   EfiMaxMemoryType                                                                            

 91 } EFI_MEMORY_TYPE;


EfiConventionalMemory: Available memory space

EfiLoaderCode: UEFI Application code

EfiLoaderData: UEFI Application data

EfiBootServicesCode: UEFI/PEI/DXE driver

EfiBootServicesData: UEFI/PEI/DXE driver allocated memory

EfiPersistentMemory

EfiRuntimeServicesCode: Runtime driver. It can’t be used by OS.

EfiRuntimeServicesData: Runtime data. It can’t be used by OS.

EfiReservedMemoryType: Reserved memory in BIOS. It can’t be used by OS.

EfiACPIReclaimMemory: Used by ACPI.

EfiACPIMemoryNVS: Used by ACPI. It can’t be used by OS.

EfiMemoryMappedIO

EfiMemoryMappedIOPortSpace
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值