3 Commits
Author SHA1 Message Date
Ruiyu Ni 2db35f7bd0 MdeModulePkg/ResetUtilityLib: Add pack(1) for reset data structure
RESET_UTILITY_GUID_SPECIFIC_RESET_DATA structure should be declared
as pack(1).
The patch adds the missing pack(1) pragma.

(GUID *)((UINT8 *)&ResetData +
OFFSET_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, ResetSubtype))
is used to replace &ResetData.ResetSubType to resolve C4366 VS
compiler warning.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
(cherry picked from commit 93f5a54ff3)
2018-07-19 12:52:08 +08:00
Ruiyu Ni 2d1a8a008f MdeModulePkg/ResetUtilityLib: Fix GCC build failure
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <[email protected]>
Cc: Dandan Bi <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
(cherry picked from commit 5eecb45af0)
2018-02-14 09:19:48 +08:00
Michael D Kinney 43cfd6a831 MdeModulePkg: Add ResetUtility library class and BASE instance
The library class that provides services to generate a GUID specific
reset, parse the GUID from a GUID specific reset, and build the
ResetData buffer for any type of reset that requires extra data.

Cc: Liming Gao <[email protected]>
Reviewed-by: Ruiyu Ni <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <[email protected]>
Signed-off-by: Ruiyu Ni <[email protected]>
(cherry picked from commit e12ceb40ce)
2018-02-09 15:42:41 +08:00