.

.

.

common/board_r.c

1    static int initr_ethaddr(void)
2    {
3            bd_t *bd = gd->bd;
4    
5            /* kept around for legacy kernels only ... ignore the next section */
6            eth_getenv_enetaddr("ethaddr", bd->bi_enetaddr);
7    #ifdef CONFIG_HAS_ETH1
8            eth_getenv_enetaddr("eth1addr", bd->bi_enet1addr);
9    #endif
10    #ifdef CONFIG_HAS_ETH2
11            eth_getenv_enetaddr("eth2addr", bd->bi_enet2addr);
12    #endif
13    #ifdef CONFIG_HAS_ETH3
14            eth_getenv_enetaddr("eth3addr", bd->bi_enet3addr);
15    #endif
16    #ifdef CONFIG_HAS_ETH4
17            eth_getenv_enetaddr("eth4addr", bd->bi_enet4addr);
18    #endif
19    #ifdef CONFIG_HAS_ETH5
20            eth_getenv_enetaddr("eth5addr", bd->bi_enet5addr);
21    #endif
22            return 0;
23    }

initr_ethaddr함수의 모든 전처리문은 정의되어 있지 않기때문에 3, 6번줄만 수행됩니다.

.

.

results matching ""

    No results matching ""