mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 15:29:35 +02:00
util/nvmutil: comment regarding endianness
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -609,6 +609,11 @@ good_checksum(int partnum)
|
||||
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
|
||||
word(size_t pos16, int p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user