mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 05:00:08 +02:00
util/nvmutil: comment regarding memcpy endianness
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -608,6 +608,13 @@ good_checksum(int partnum)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* NOTE: memcpy is a bit sticky with host endianness,
|
||||||
|
* but we currently use it only when swap has
|
||||||
|
* been handled. just be careful about when the
|
||||||
|
* swap() function is called.
|
||||||
|
*/
|
||||||
|
|
||||||
static uint16_t
|
static uint16_t
|
||||||
word(int pos16, int p)
|
word(int pos16, int p)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user