Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: cbootimage.h

Issue 6676023: Initialize the bad block table when create the bct file from scratch, (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | data_layout.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cbootimage.h
diff --git a/cbootimage.h b/cbootimage.h
index f99c92626a445a8a953170223e42395d1e777f44..1dfa75b979f974846e42e512f01f673fef0cd322 100644
--- a/cbootimage.h
+++ b/cbootimage.h
@@ -33,12 +33,15 @@
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
+#include <math.h>
#define NVBOOT_AES_BLOCK_SIZE_LOG2 4
#define MAX_BUFFER 200
#define MAX_STR_LEN 20
#define MAX_BOOTLOADER_SIZE (16 * 1024 * 1024)
#define NVBOOT_BOOTDATA_VERSION(a, b) ((((a)&0xffff) << 16) | ((b)&0xffff))
+#define NVBOOT_BAD_BLOCK_TABLE_SIZE 4096
+#define NV_MAX(a, b) (((a) > (b)) ? (a) : (b))
/*
* Enumerations
« no previous file with comments | « no previous file | data_layout.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698