Home
last modified time | relevance | path

Searched hist:b1690bc39cfdba82be34b1a98abc319339070698 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Dtsec.cb1690bc39cfdba82be34b1a98abc319339070698 Mon Sep 30 09:44:47 UTC 2013 Claudiu Manoil <claudiu.manoil@freescale.com> net: tsec: Fix mac addr setup portability, cleanup

Fix the 32-bit memory access that is not "endianess safe",
i.e. not giving the desired byte layout for LE cpus:
tempval = *((uint *) (tmpbuf + 4)), where 'char tmpbuf[]'.

Free the stack from rendundant local vars:
tmpbuf[] and i.

Use a portable type (u32) for the 32bit tsec register value
holder: tempval.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>