Skip to content

Commit 17b29f2

Browse files
committed
Increase DATA_LIMIT to 64 KiB
WHCP System.Fundamentals.Firmware.UEFISecureBoot point 30 dictates: Reserved Memory for Windows Secure Boot UEFI Variables. A total of at least 128 KB of non-volatile NVRAM storage memory must be available for NV UEFI variables (authenticated and unauthenticated, BS and RT) used by UEFI Secure Boot and Windows, and the maximum supported variable size must be at least 64 KB. There is no maximum NVRAM storage limit. Note that this is an increase from Windows 10, version 1703 requirements of 64 KB total and 32 KB variable size. This requirement will become enforced in the next release cycle, after April 2018. Signed-off-by: Tu Dinh <[email protected]>
1 parent 2a78764 commit 17b29f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/handler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
#include "efi.h"
3636

3737
#define NAME_LIMIT 4096 /* Maximum length of name */
38-
#define DATA_LIMIT 57344 /* Maximum length of a single variable */
38+
/* The following limits must respect the minimum prescribed by WHCP. */
39+
#define DATA_LIMIT 65536 /* Maximum length of a single variable */
3940
#define TOTAL_LIMIT 131072 /* Maximum total storage */
4041

4142
/*

0 commit comments

Comments
 (0)