diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-04 01:32:34 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-04 01:32:34 +0000 |
| commit | 75ea8ab1756b71c766769b519355e9f6c3611a69 (patch) | |
| tree | d994c2ee87b69f15080a805acd25d18691ba372b /util/nvmutil/nvmutil.c | |
| parent | ca98d418d5d75d82721193178e11d1edfa166649 (diff) | |
util/nvmutil: comment regarding memcpy endianness
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 71fe7123..f1e2c6f7 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -608,6 +608,13 @@ good_checksum(int partnum) 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 word(int pos16, int p) { |
