| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* Test of locking, to see if locks count as writes. (They should.) | 6 /* Test of locking, to see if locks count as writes. (They should.) |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| 11 | 11 |
| 12 #include "tlcl.h" | 12 #include "tlcl.h" |
| 13 | 13 |
| 14 #define INDEX0 0xda70 | 14 #define INDEX0 0xda70 |
| 15 | 15 |
| 16 | 16 |
| 17 int main(int argc, char** argv) { | 17 int main(int argc, char** argv) { |
| 18 TlclLibInit(); | 18 TlclLibInit(); |
| 19 | 19 |
| 20 TlclStartup(); | 20 TlclStartup(); |
| 21 TlclSelftestfull(); | 21 TlclSelfTestFull(); |
| 22 | 22 |
| 23 TlclAssertPhysicalPresence(); | 23 TlclAssertPhysicalPresence(); |
| 24 | 24 |
| 25 TlclWriteLock(INDEX0); | 25 TlclWriteLock(INDEX0); |
| 26 | 26 |
| 27 printf("Locked 0x%x\n", INDEX0); | 27 printf("Locked 0x%x\n", INDEX0); |
| 28 exit(0); | 28 exit(0); |
| 29 } | 29 } |
| OLD | NEW |