diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2016-01-07 12:02:49 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-01-07 12:13:07 -0500 |
commit | 115d0084831b1e9e085d8fe49fa9e4ea21542464 (patch) | |
tree | 29a6495a6e1acbc45422f2ccc684f72884964684 /src/boot.c | |
parent | a2206d30aed52722ce708519ef7b31d88330d515 (diff) | |
download | seabios-hppa-115d0084831b1e9e085d8fe49fa9e4ea21542464.zip seabios-hppa-115d0084831b1e9e085d8fe49fa9e4ea21542464.tar.gz seabios-hppa-115d0084831b1e9e085d8fe49fa9e4ea21542464.tar.bz2 |
tpm: Rework the assertion of physical presence
Rework the assertion of physical presence by calling assert_physical_presence
in tpm_setup. This call will assert physical presence if SW assertion is
possible or by checking whether HW physical presence is enabled.
The TPM menu will only be shown if physical presence is asserted or HW
physical presence is enabled after this call.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/boot.c')
-rw-r--r-- | src/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -486,7 +486,7 @@ interactive_bootmenu(void) printf("%d. %s\n", maxmenu , strtcpy(desc, pos->description, ARRAY_SIZE(desc))); } - if (tpm_is_working()) { + if (tpm_can_show_menu()) { printf("\nt. TPM Configuration\n"); } @@ -499,7 +499,7 @@ interactive_bootmenu(void) scan_code = get_keystroke(1000); if (scan_code == 1 && !irqtimer_check(esc_accepted_time)) continue; - if (tpm_is_working() && scan_code == 20 /* t */) { + if (tpm_can_show_menu() && scan_code == 20 /* t */) { printf("\n"); tpm_menu(); } |