]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SmmMemoryAttribute.h: Add new protocol definitions
authorJian J Wang <jian.j.wang@intel.com>
Tue, 14 Nov 2017 02:51:50 +0000 (10:51 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 17 Nov 2017 03:01:01 +0000 (11:01 +0800)
commitf1f4eab4e5b74639c714eac6314cc0b502149413
treea325f17d1ed2b4f2571e808d3d0e315a7d759183
parent1484198ae18b06279058c72d14164470a5686d69
MdeModulePkg/SmmMemoryAttribute.h: Add new protocol definitions

The new protocol gEdkiiSmmMemoryAttributeProtocolGuid is intended for
PiSmmCore to be able to change memory page attributes for the sake of
heap guard feature.

This protocol provides three interfaces to get/set/clear page attribute.

struct _EDKII_SMM_MEMORY_ATTRIBUTE_PROTOCOL {
  EDKII_SMM_GET_MEMORY_ATTRIBUTES       GetMemoryAttributes;
  EDKII_SMM_SET_MEMORY_ATTRIBUTES       SetMemoryAttributes;
  EDKII_SMM_CLEAR_MEMORY_ATTRIBUTES     ClearMemoryAttributes;
};

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Suggested-by: Ayellet Wolman <ayellet.wolman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
MdeModulePkg/Include/Protocol/SmmMemoryAttribute.h [new file with mode: 0644]