Ignore:
Timestamp:
Apr 27, 2018, 2:26:14 PM (6 years ago)
Author:
coas-nagasima
Message:

syscallが関数呼びになるよう変更
他更新

Location:
asp3_tinet_ecnl_rx/trunk/asp3_dcre
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/Debug/Makefile

    r337 r342  
    369369tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ;
    370370$(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS)
    371         $(TECSGEN) $< -R $(INCLUDES) --cpp "$(TECS_CPP)" -g $(TECSGENDIR)
     371        $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR)
    372372
    373373#
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/DebugCitrus/Makefile

    r337 r342  
    369369tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ;
    370370$(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS)
    371         $(TECSGEN) $< -R $(INCLUDES) --cpp "$(TECS_CPP)" -g $(TECSGENDIR)
     371        $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR)
    372372
    373373#
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/prc_kernel_impl.c

    r337 r342  
    3939 *  の責任を負わない.
    4040 *
    41  *  @(#) $Id$
     41 *  @(#) $Id: prc_kernel_impl.c 1518 2018-04-24 00:37:16Z coas-nagasima $
    4242 */
    4343
     
    237237#endif /* OMIT_DEFAULT_EXC_HANDLER */
    238238
     239void _start_c(char **args);
     240
     241void
     242_sta_ker()
     243{
     244        const char *const args[] = {
     245                1,
     246                "asp3",
     247                0,
     248                "TZ=JST-9",
     249                0
     250        };
     251        _start_c(args);
     252}
     253
     254//#include <errno.h>
     255#define ENOSYS          38
     256
     257__attribute__((weak))
     258long SYS_poll()
     259{
     260        return -ENOSYS;
     261}
     262
     263__attribute__((weak))
     264long SYS_open()
     265{
     266        return -ENOSYS;
     267}
     268
     269__attribute__((weak))
     270void SYS_set_tid_address()
     271{
     272        return 0;//-ENOSYS;
     273}
     274
     275__attribute__((weak))
     276void SYS_mmap2()
     277{
     278        return 0;//-ENOSYS;
     279}
     280
     281__attribute__((weak))
     282void SYS_exit_group()
     283{
     284        ext_ker();
     285}
     286
     287__attribute__((weak))
     288void SYS_exit()
     289{
     290        ext_ker();
     291}
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/start.S

    r337 r342  
    144144        ;
    145145kernel_link:
    146         bra.a   _sta_ker                                        ; --> _sta_ker()
     146        bra.a   __sta_ker                                       ; --> __sta_ker()
    147147
    148148        .end
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/include/t_syslog.h

    r337 r342  
    140140
    141141#ifndef TOPPERS_OMIT_SYSLOG
    142 #ifdef TOPPERS_OMIT_TECS
    143 #define tSysLog_eSysLog_write syslog_wri_log
    144 #endif
    145142
    146143/*
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/sample/Makefile

    r337 r342  
    362362tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ;
    363363$(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS)
    364         $(TECSGEN) $< -R $(INCLUDES) --cpp "$(TECS_CPP)" -g $(TECSGENDIR)
     364        $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR)
    365365
    366366#
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tSerialPortMain.c

    r337 r342  
    504504        pk_rpor->reacnt = VAR_receiveCount;
    505505        pk_rpor->wricnt = VAR_sendCount;
     506        pk_rpor->wbufsz = ATTR_sendBufferSize;
    506507        return(E_OK);
    507508}
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.c

    r337 r342  
    2929 *  接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
    3030 *
    31  *  @(#) $Id$
     31 *  @(#) $Id: ethernet.c 1524 2018-04-25 13:48:23Z coas-nagasima $
    3232 */
    3333
     
    195195
    196196/**
    197  * Called by a driver when its link goes up
    198  */
    199 void ether_set_link_up()
    200 {
    201   if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) {
    202     ether_ifnet.flags |= IF_FLAG_LINK_UP;
    203 
    204     if (ether_ifnet.flags & IF_FLAG_UP) {
    205 #if LWIP_ARP
    206       /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
    207       if (ether_ifnet.flags & IF_FLAG_ETHARP) {
    208         etharp_gratuitous(&ether_ifnet);
    209       }
    210 #endif /* LWIP_ARP */
    211 
    212 #if LWIP_IGMP
    213       /* resend IGMP memberships */
    214       if (ether_ifnet._flags & IF_FLAG_IGMP) {
    215         igmp_report_groups(&ether_ifnet);
    216       }
    217 #endif /* LWIP_IGMP */
    218     }
    219     if (ether_ifnet.link_callback) {
    220       (ether_ifnet.link_callback)(&ether_ifnet);
    221     }
    222   }
    223 }
     197 * ether_set_link_up -- リンクしたときにNICから呼び出される
     198 */
     199void
     200ether_set_link_up()
     201{
     202        if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) {
     203                ether_ifnet.flags |= IF_FLAG_LINK_UP;
     204
     205                if (ether_ifnet.flags & IF_FLAG_UP) {
     206#if defined(_IP4_CFG) && defined(SUPPORT_ETHER)
     207                        /* ARP再構築? */
     208#endif /* #if defined(_IP4_CFG) && defined(SUPPORT_ETHER) */
     209
     210#ifdef SUPPORT_IGMP
     211                        /* IGMP参加 */
     212#endif /* #ifdef SUPPORT_IGMP */
     213                        }
     214                if (ether_ifnet.link_callback) {
     215                        (ether_ifnet.link_callback)(&ether_ifnet);
     216                        }
     217                }
     218        }
    224219
    225220/**
    226  * Called by a driver when its link goes down
    227  */
    228 void ether_set_link_down()
    229 {
    230   if (ether_ifnet.flags & IF_FLAG_LINK_UP) {
    231     ether_ifnet.flags &= ~IF_FLAG_LINK_UP;
    232     if (ether_ifnet.link_callback) {
    233       (ether_ifnet.link_callback)(&ether_ifnet);
    234     }
    235   }
    236 }
    237 
    238 void ether_set_up()
    239 {
    240   if (!(ether_ifnet.flags & IF_FLAG_UP)) {
    241     ether_ifnet.flags |= IF_FLAG_UP;
    242     if (ether_ifnet.link_callback) {
    243       (ether_ifnet.link_callback)(&ether_ifnet);
    244     }
    245   }
    246 }
    247 
    248 void ether_set_down()
    249 {
    250   if (ether_ifnet.flags & IF_FLAG_UP) {
    251     ether_ifnet.flags &= ~IF_FLAG_UP;
    252     if (ether_ifnet.link_callback) {
    253       (ether_ifnet.link_callback)(&ether_ifnet);
    254     }
    255   }
    256 }
    257 
    258 /**
    259  * Set callback to be called when link is brought up/down
    260  */
    261 void ether_set_link_callback(ether_status_callback_fn link_callback)
     221 * ether_set_link_up -- リンクが切断したときにNICから呼び出される
     222 */
     223void
     224ether_set_link_down()
     225{
     226        if (ether_ifnet.flags & IF_FLAG_LINK_UP) {
     227                ether_ifnet.flags &= ~IF_FLAG_LINK_UP;
     228                if (ether_ifnet.link_callback) {
     229                        (ether_ifnet.link_callback)(&ether_ifnet);
     230                        }
     231                }
     232        }
     233
     234/*
     235 * ether_set_up -- DHCPでアドレスが設定されたとき呼び出される
     236 */
     237
     238void
     239ether_set_up()
     240{
     241        if (!(ether_ifnet.flags & IF_FLAG_UP)) {
     242                ether_ifnet.flags |= IF_FLAG_UP;
     243                if (ether_ifnet.link_callback) {
     244                        (ether_ifnet.link_callback)(&ether_ifnet);
     245                        }
     246                }
     247        }
     248
     249/*
     250 * ether_set_down -- DHCPでアドレスが解放されたとき呼び出される
     251 */
     252
     253void
     254ether_set_down()
     255{
     256        if (ether_ifnet.flags & IF_FLAG_UP) {
     257                ether_ifnet.flags &= ~IF_FLAG_UP;
     258                if (ether_ifnet.link_callback) {
     259                        (ether_ifnet.link_callback)(&ether_ifnet);
     260                        }
     261                }
     262        }
     263
     264/*
     265 * ether_set_link_callback -- リンク状態変化時のコールバック登録
     266 */
     267
     268void
     269ether_set_link_callback(ether_status_callback_fn link_callback)
    262270{
    263271        ether_ifnet.link_callback = link_callback;
    264 }
     272        if (ether_ifnet.link_callback) {
     273                (ether_ifnet.link_callback)(&ether_ifnet);
     274                }
     275        }
    265276
    266277/*
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.h

    r337 r342  
    2929 *  接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
    3030 *
    31  *  @(#) $Id$
     31 *  @(#) $Id: ethernet.h 1524 2018-04-25 13:48:23Z coas-nagasima $
    3232 */
    3333
     
    311311extern uint32_t ether_srand (void);
    312312
    313 /** Function prototype for netif status- or link-callback functions. */
    314313typedef void (*ether_status_callback_fn)(T_IFNET *ether);
    315314extern void ether_set_link_callback(ether_status_callback_fn link_callback);
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/netapp/dhcp4_cli_var.h

    r340 r342  
    165165        ER_UINT         error;          /* エラー・データ長             */
    166166        ID                      tskid;          /* タスクID */
    167         ID              cepid;          /* CEP ID                       */
     167        ID                      cepid;          /* CEP ID                       */
    168168        uint32_t        xid;            /* トランザクション ID          */
    169169        uint16_t        flags;          /* 各種フラグ                        */
Note: See TracChangeset for help on using the changeset viewer.