1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 /* Test of early writing to the NVRAM. 7 */ 8 9 #include <stdio.h> 10 #include <stdint.h> 11 #include <stdlib.h> 12 13 #include "tlcl.h" 14 #include "tlcl_tests.h" 15 #include "utility.h" 16 main(int argc,char ** argv)17int main(int argc, char** argv) { 18 uint32_t x; 19 20 TlclLibInit(); 21 TPM_CHECK(TlclStartup()); 22 TPM_CHECK(TlclContinueSelfTest()); 23 TPM_CHECK(TlclAssertPhysicalPresence()); 24 TPM_CHECK(TlclWrite(INDEX0, (uint8_t*) &x, sizeof(x))); 25 printf("TEST SUCCEEDED\n"); 26 return 0; 27 } 28