Add configurable application entry point

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5070 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-08-30 20:13:50 +00:00
parent 6ab6c46f2f
commit b121fbbb00
254 changed files with 777 additions and 613 deletions
+6 -6
View File
@@ -99,10 +99,10 @@ static void prun(FAR struct pexec_s *st)
****************************************************************************/
/****************************************************************************
* user_start
* pashello_main
****************************************************************************/
int user_start(int argc, FAR char *argv[])
int pashello_main(int argc, FAR char *argv[])
{
FAR struct pexec_s *st;
@@ -115,11 +115,11 @@ int user_start(int argc, FAR char *argv[])
st = pload("/dev/hello", CONFIG_PASHELLO_VARSTACKSIZE, CONFIG_PASHELLO_STRSTACKSIZE);
if (!st)
{
fprintf(stderr, "user_start: ERROR: Could not load /dev/hello\n");
fprintf(stderr, "pashello_main: ERROR: Could not load /dev/hello\n");
exit(1);
}
printf("user_start: /dev/hello Loaded\n");
printf("user_start: Interpreter started:\n");
printf("pashello_main: /dev/hello Loaded\n");
printf("pashello_main: Interpreter started:\n");
/* And start program execution */
@@ -127,7 +127,7 @@ int user_start(int argc, FAR char *argv[])
/* Clean up resources used by the interpreter */
printf("user_start: Interpreter terminated");
printf("pashello_main: Interpreter terminated");
pexec_release(st);
return 0;
}