diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-06-23 05:30:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-06-23 05:30:31 +0000 |
commit | 0b1fdf1ad8f3c6f0fc59ecf63b18d62d9b032ed8 (patch) | |
tree | 016020b83eab9d5ea5c2a7d5b3e6650184f98883 /target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c | |
parent | 2e3c3918f2d81a8a4af30ecb44454ae326c8d7bd (diff) | |
download | mtk-20170518-0b1fdf1ad8f3c6f0fc59ecf63b18d62d9b032ed8.zip mtk-20170518-0b1fdf1ad8f3c6f0fc59ecf63b18d62d9b032ed8.tar.gz mtk-20170518-0b1fdf1ad8f3c6f0fc59ecf63b18d62d9b032ed8.tar.bz2 |
fix hardware byte swapping to work in little endian mode as well
SVN-Revision: 7712
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c')
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c index fea52ff..570244b 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c @@ -904,12 +904,12 @@ void __init adm5120_swab_test(void) u32 t1,t2; t1 = 0x1234; - t2 = swab16(t1); + t2 = __arch__swab16(t1); printk("hardware swab16 test %s, data:0x%04X, result:0x%04X\n", (t2 == 0x3412) ? "passed" :"failed", t1, t2); t1 = 0x12345678; - t2 = swab32(t1); + t2 = __arch__swab32(t1); printk("hardware swab32 test %s, data:0x%08X, result:0x%08X\n", (t2 == 0x78563412) ? "passed" :"failed", t1, t2); |