[PATCH] efi_loader: avoid superfluous variable store writes on unchanged data

Michal Simek michal.simek at amd.com
Fri Mar 13 11:42:30 CET 2026



On 3/13/26 11:28, Ilias Apalodimas wrote:
> Thanks Michal
> 
> 
> The code looks sane apart from the runtime part.
> 
> [...]
> 
>> +
>> +                       if (!memcmp(old_data, data1, size1)) {
> 
> So this will probably blowup in Linux. We had similar issues with
> memcpy and added efi_memcpy_runtime()

ok. It means you want to just do comparison via loop right?

M


More information about the U-Boot mailing list