You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Fix QEMU Flash read issue after erasing
After erasing flash on QEMU, it needs to be returned to normal read state to allow normal read access. However, this is missing in current SBL QEMU SpiFlashLib. This patched added the code to switch back to read mode. It also fixed #552. Signed-off-by: Maurice Ma <maurice.ma@intel.com>
This commit is contained in:
@@ -406,5 +406,9 @@ SpiFlashErase (
|
||||
Ptr += 0x1000;
|
||||
}
|
||||
|
||||
if (ByteCount > 0) {
|
||||
*(Ptr - 1) = READ_ARRAY_CMD;
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user