-->
Page 8 of 8

Re: liblwip.a based on LwIP 1.4.1.

PostPosted: Sat Apr 18, 2015 11:44 pm
by pvvx
kadamski - err2:
if (state->myif == NULL) {
myif = (void *)os_zalloc(sizeof(struct netif));
state->myif = myif;
}
Code: Select alleagle_lwip_if_alloc:                    ; CODE XREF: wifi_softap_start+45j
                                        ; wifi_station_start+31j
                addi            a1, a1, 0xC0
                s32i.n          a14, a1, 0x3C
                s32i.n          a3, a1, 0x2C
                s32i.n          a13, a1, 0x38
                s32i.n          a12, a1, 0x34
                s32i.n          a0, a1, 0x30
                mov.n           a12, a2 ; state
                l32i.n          a0, a2, 0 ; state->myif
                mov.n           a13, a4
                bnez.n          a0, loc_40243085

                movi.n          a2, 60
                l32r            a0, a_pvPortMalloc
                callx0          a0
                mov.n           a14, a2
                s32i.n          a2, a12, 0 ; state->myif = myif

loc_40243085:                           
                s32i            a12, a14, 28

Re: liblwip.a based on LwIP 1.4.1.

PostPosted: Sun Apr 19, 2015 4:26 pm
by pvvx
+
Code: Select all        ??? = queue; // [0x3FFE9B84] = queue;
        ets_task(task_if0, TASK_IF0_PRIO, (ETSEvent *)queue, QUEUE_LEN);
        netif_add(myif, &ipaddr, &netmask, &gw, state, init_fn, ethernet_input);
    } else {
       ???+4 = queue; //[0x3FFE9B88] = queue;
        netif_set_addr(myif, &ipaddr, &netmask, &gw);

Code: Select all                 movi.n          a2, 80
                 l32r            a0, a_pvPortMalloc
                 callx0          a0
                 movi.n          a3, 28
                 movi.n          a5, 10
                 l32r            a11, a_3FFE9B84
                 mov.n           a4, a2
                 s32i.n          a2, a11, 0 ; !!!
                 l32r            a2, a_netif_task_if0
                 l32r            a0, a_ets_task
                 callx0          a0
                 ------------
                 call0           netif_set_addr
                 movi.n          a2, 80
                 l32r            a0, a_pvPortMalloc
                 callx0          a0
                 movi.n          a3, 29
                 movi.n          a5, 10
                 l32r            a0, a_3FFE9B84
                 mov.n           a4, a2
                 s32i.n          a2, a0, 4 ; !!!
                 l32r            a2, a_netif_task_if1
                 l32r            a0, a_ets_task
                 callx0          a0

Re: liblwip.a based on LwIP 1.4.1.

PostPosted: Wed May 27, 2015 7:43 pm
by pvvx
New eagle_lwip_if.c (SDK 1.1.0):
https://github.com/pvvx/esp8266web/blob ... _lwip_if.c
(+Open LwIP v1.4.0)