summaryrefslogtreecommitdiff
path: root/DuetPkg/FSVariable/FSVariable.h
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-09 06:31:30 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-09 06:31:30 +0000
commit8e3fdb95fa09752ba95b336d2a0ecd2a6d927843 (patch)
treeab1203c71fa27fc8ad2a51bf2b847363c04837cf /DuetPkg/FSVariable/FSVariable.h
parent72d50eec450f6101fdd2593b875b55712776df7c (diff)
downloadedk2-8e3fdb95fa09752ba95b336d2a0ecd2a6d927843.zip
edk2-8e3fdb95fa09752ba95b336d2a0ecd2a6d927843.tar.gz
edk2-8e3fdb95fa09752ba95b336d2a0ecd2a6d927843.tar.bz2
Move Varialbe common definitions (GET_PAD_SIZE and HEADER_ALIGN macro) into MdeModulePackage Include VariableFormat.h
And Use PCD to replace macros in source code to reduce confusion.(FixedPcdGet32(PcdMaxVariableSize) replaces MAX_VARIABLE_SIZE, and FixedPcdGet32(PcdMaxHardwareErrorVariableSize) replaces MAX_HARDWARE_ERROR_VARIABLE_SIZE. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7230 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/FSVariable/FSVariable.h')
-rw-r--r--DuetPkg/FSVariable/FSVariable.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.h b/DuetPkg/FSVariable/FSVariable.h
index c046fe9..9fdd0a7 100644
--- a/DuetPkg/FSVariable/FSVariable.h
+++ b/DuetPkg/FSVariable/FSVariable.h
@@ -53,15 +53,6 @@ Abstract:
#define VARIABLE_SCRATCH_SIZE (4 * 1024)
#define VARIABLE_RECLAIM_THRESHOLD (1024)
-//
-// Define GET_PAD_SIZE to optimize compiler
-//
-#if ((ALIGNMENT == 0) || (ALIGNMENT == 1))
-#define GET_PAD_SIZE(a) (0)
-#else
-#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))
-#endif
-
#define GET_VARIABLE_NAME_PTR(a) (CHAR16 *) ((UINTN) (a) + sizeof (VARIABLE_HEADER))
typedef enum {