Ignore:
Timestamp:
Feb 1, 2005, 5:16:41 PM (16 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c60eccb
Parents:
891aa12e
Message:

Add some bootrom system calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/uC5282/network/network.c

    r891aa12e r7eab0f78  
    138138        bdp = (mcf5282BufferDescriptor_t *)((char *)bdp + (16 - ((int)bdp & 0xF)));
    139139    return p;
    140 }
    141 
    142 /*
    143  * Retrieve MAC address from bootloader environment variable area.
    144  * Parameter is interface number (0 or 1).
    145  */
    146 static unsigned char *
    147 gethwaddr(int a)
    148 {
    149    register long __res __asm__ ("%d2") = 12;
    150    register long __a __asm__ ("%d1") = (long)a;
    151    __asm__ __volatile__ ("trap #2" \
    152                          : "=g" (__res) \
    153                          : "0" (__res), "d" (__a) \
    154                          : "%d0");
    155    return (unsigned char *)(__res);
    156140}
    157141
     
    795779        hwaddr = config->hardware_address;
    796780    else
    797         hwaddr = gethwaddr(unitNumber - 1);
     781        hwaddr = uC5282_gethwaddr(unitNumber - 1);
    798782    printf("%s%d: Ethernet address: %02x:%02x:%02x:%02x:%02x:%02x\n",
    799783                                            unitName, unitNumber,
Note: See TracChangeset for help on using the changeset viewer.