util/nvmutil: comment regarding endianness

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 13:30:14 +00:00
parent c7409cce03
commit a31236b1f8
+5
View File
@@ -609,6 +609,11 @@ good_checksum(int partnum)
return 0; return 0;
} }
/*
* GbE NVM files store 16-bit (2-byte) little-endian words.
* We must therefore swap the order when reading or writing.
*/
static uint16_t static uint16_t
word(size_t pos16, int p) word(size_t pos16, int p)
{ {