]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: Use u32 instead of ulong for A53
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 28 May 2014 09:57:58 +0000 (15:27 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 28 May 2014 11:26:04 +0000 (13:26 +0200)
Use u32 instead of ulong for A53.
This fixes the dhcp issue of dhcp timeout
on A53.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/net.h
net/bootp.h

index 016002daad214f34e9e26671d9793dcb14d023ff..fa406b1cb526be757b5f2a0a0a6e507305d74152 100644 (file)
@@ -601,7 +601,7 @@ static inline ulong NetReadLong(ulong *from)
 {
        ulong l;
 
-       memcpy((void *)&l, (void *)from, sizeof(l));
+       memcpy((void *)&l, (void *)from, sizeof(u32));
        return l;
 }
 
@@ -620,7 +620,7 @@ static inline void NetCopyIP(void *to, void *from)
 /* copy ulong */
 static inline void NetCopyLong(ulong *to, ulong *from)
 {
-       memcpy((void *)to, (void *)from, sizeof(ulong));
+       memcpy((void *)to, (void *)from, sizeof(u32));
 }
 
 /**
index ecbcc4d5093c3dd4b2ba5e4b89e200bd32fe22d8..a086d4fb3fcc4e6b0d9aa3b8bcfcee3578beb3b5 100644 (file)
@@ -38,7 +38,7 @@ struct Bootp_t {
        uchar           bp_hlen;        /* Hardware address length      */
 # define HWL_ETHER     6
        uchar           bp_hops;        /* Hop count (gateway thing)    */
-       ulong           bp_id;          /* Transaction ID               */
+       u32             bp_id;          /* Transaction ID               */
        ushort          bp_secs;        /* Seconds since boot           */
        ushort          bp_spare1;      /* Alignment                    */
        IPaddr_t        bp_ciaddr;      /* Client IP address            */