set up IB connection in MCOS at start up (mc_cmd_client_init() in init.c)
This commit is contained in:
parent
7027845a4e
commit
06003ec2e2
@ -10,6 +10,11 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <cls.h>
|
#include <cls.h>
|
||||||
|
|
||||||
|
//#define IOCTL_FUNC_EXTENSION
|
||||||
|
#ifdef IOCTL_FUNC_EXTENSION
|
||||||
|
#include <ioctl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define DEBUG_PRINT_INIT
|
//#define DEBUG_PRINT_INIT
|
||||||
|
|
||||||
#ifdef DEBUG_PRINT_INIT
|
#ifdef DEBUG_PRINT_INIT
|
||||||
@ -186,6 +191,13 @@ static void post_init(void)
|
|||||||
}
|
}
|
||||||
ap_start();
|
ap_start();
|
||||||
}
|
}
|
||||||
|
#ifdef DCFA_RUN
|
||||||
|
extern void user_main();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DCFA_KMOD
|
||||||
|
extern int mc_cmd_client_init(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@ -205,8 +217,19 @@ int main(void)
|
|||||||
|
|
||||||
kputs("MCK/AAL booted.\n");
|
kputs("MCK/AAL booted.\n");
|
||||||
|
|
||||||
|
#ifdef DCFA_KMOD
|
||||||
|
mc_cmd_client_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DCFA_RUN
|
||||||
|
kputs("DCFA begin\n");
|
||||||
|
|
||||||
|
user_main();
|
||||||
|
|
||||||
|
kputs("DCFA end\n");
|
||||||
|
#else
|
||||||
schedule();
|
schedule();
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user