summaryrefslogtreecommitdiff
path: root/config/submodule/coreboot/default/binutils-2.45.tar.xz
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 13:03:41 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 13:07:39 +0000
commit9044b55c485976c5d1e291dc6055185128d9e48b (patch)
tree42b8de2175d906178217b96a4a2a9f848e51ff96 /config/submodule/coreboot/default/binutils-2.45.tar.xz
parent98bc523274c8343f91e8657b1d85653944094f09 (diff)
util/nvmutil: don't copy data in copy/swap
instead, use a single integer, set to 1 if using these commands (otherwise set to 0) used as an XOR mask. use this to invert where data gets read. one quirk with this is that if a copy operation is performed from a part with a bad checksum, it's already done in advance, in memory, but then the check on the checksum in cmd_copy is now checking the other part, which will be all zeroes, so i invert that too; this means now when running cmd_copy, it'll complain about an invalid part, but the part number is inverted. it's a small price to pay, because this restores the previous performance optimisations but without being as unsafe. this is also true when doing the swap. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/submodule/coreboot/default/binutils-2.45.tar.xz')
0 files changed, 0 insertions, 0 deletions