mirror of https://github.com/wolfSSL/wolfBoot.git
ahci: allow ATA_SEC0 on qemu target
parent
0aac8e2423
commit
a96b738e28
|
|
@ -447,6 +447,10 @@ int sata_unlock_disk(int drv, int freeze)
|
|||
|
||||
ata_st = ata_security_get_state(drv);
|
||||
wolfBoot_printf("ATA: Security state SEC%d\r\n", ata_st);
|
||||
#if defined(TARGET_x86_fsp_qemu)
|
||||
if (ata_st == ATA_SEC0)
|
||||
return 0;
|
||||
#endif
|
||||
if (ata_st == ATA_SEC1) {
|
||||
if (freeze) {
|
||||
AHCI_DEBUG_PRINTF("ATA identify: calling freeze lock\r\n", r);
|
||||
|
|
|
|||
Loading…
Reference in New Issue