Add lots of debugging to TPM library.

Temporarily disable TPM in developer mode.

Review URL: http://codereview.chromium.org/3041005
This commit is contained in:
Randall Spangler
2010-07-19 10:04:21 -07:00
parent aa92c63402
commit 3e1081fb71
18 changed files with 170 additions and 77 deletions

View File

@@ -22,12 +22,14 @@
#define RW_NORMAL_MODE 2
/* TPM NVRAM location indices. */
#define FIRST_ROLLBACK_NV_INDEX 0x1001 /* First index used here */
#define FIRMWARE_VERSIONS_NV_INDEX 0x1001
#define KERNEL_VERSIONS_NV_INDEX 0x1002
#define TPM_IS_INITIALIZED_NV_INDEX 0x1003
#define KERNEL_VERSIONS_BACKUP_NV_INDEX 0x1004
#define KERNEL_MUST_USE_BACKUP_NV_INDEX 0x1005
#define DEVELOPER_MODE_NV_INDEX 0x1006
#define LAST_ROLLBACK_NV_INDEX 0x1006 /* Last index used here */
/* Unique ID to detect kernel space redefinition */
#define KERNEL_SPACE_UID "GRWL" /* unique ID with secret meaning */