Fix saa_writeaddr for big-endian case

saa_writeaddr on big-endian archs didn't write converted
argument, fix it.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2011-07-17 13:59:13 +04:00
parent f4941892b3
commit 0aa9bdf7b2

3
saa.c
View File

@ -342,6 +342,7 @@ void saa_write64(struct SAA *s, uint64_t v)
b[5] = v >> 40;
b[6] = v >> 48;
b[7] = v >> 56;
saa_wbytes(s, b, 8);
}
@ -358,7 +359,7 @@ void saa_writeaddr(struct SAA *s, uint64_t v, size_t len)
b[6] = v >> 48;
b[7] = v >> 56;
saa_wbytes(s, &v, len);
saa_wbytes(s, b, len);
}
#endif /* WORDS_LITTLEENDIAN */