diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 01:46:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 01:46:55 +0000 |
commit | 354116817a07fe13eae9ddfb21c369d67552c72a (patch) | |
tree | 90aad11bc02348e1c88fd17c9acb96fc67b62bd3 /nuttx/syscall | |
parent | a086a5b65839065f33764678c541d3af4afb0568 (diff) | |
download | px4-nuttx-354116817a07fe13eae9ddfb21c369d67552c72a.tar.gz px4-nuttx-354116817a07fe13eae9ddfb21c369d67552c72a.tar.bz2 px4-nuttx-354116817a07fe13eae9ddfb21c369d67552c72a.zip |
Progress toward kernel build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3465 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/syscall')
-rw-r--r-- | nuttx/syscall/Makefile | 1 | ||||
-rw-r--r-- | nuttx/syscall/stub_lookup.c | 19 | ||||
-rw-r--r-- | nuttx/syscall/stub_lookup.h | 6 | ||||
-rw-r--r-- | nuttx/syscall/syscall.csv | 2 |
4 files changed, 19 insertions, 9 deletions
diff --git a/nuttx/syscall/Makefile b/nuttx/syscall/Makefile index c96ca3ef4..7ef1a4629 100644 --- a/nuttx/syscall/Makefile +++ b/nuttx/syscall/Makefile @@ -92,7 +92,6 @@ $(MKSYSCALL): @$(MAKE) -C $(TOPDIR)/tools -f Makefile.host mksyscall .context: syscall.csv - echo "Rebuilding stubs and proxies" @(cd proxies; $(MKSYSCALL) -p $(CSVFILE);) @(cd stubs; $(MKSYSCALL) -s $(CSVFILE);) @touch $@ diff --git a/nuttx/syscall/stub_lookup.c b/nuttx/syscall/stub_lookup.c index f2a717898..108019b34 100644 --- a/nuttx/syscall/stub_lookup.c +++ b/nuttx/syscall/stub_lookup.c @@ -76,10 +76,10 @@ extern uintptr_t STUB_sem_post(uintptr_t parm1); extern uintptr_t STUB_sem_trywait(uintptr_t parm1); extern uintptr_t STUB_sem_unlink(uintptr_t parm1); extern uintptr_t STUB_sem_wait(uintptr_t parm1); -extern uintptr_t (uintptr_t parm1); -extern uintptr_t (uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); -extern uintptr_t (uintptr_t parm1); -extern uintptr_t (uintptr_t parm1); +extern uintptr_t STUB_set_errno(uintptr_t parm1); +extern uintptr_t STUB_task_create(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); +extern uintptr_t STUB_task_delete(uintptr_t parm1); +extern uintptr_t STUB_task_restart(uintptr_t parm1); extern uintptr_t STUB_up_assert(uintptr_t parm1, uintptr_t parm2); extern uintptr_t STUB_up_assert_code(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3); @@ -150,6 +150,9 @@ extern uintptr_t STUB_stat(uintptr_t parm1, uintptr_t parm2); extern uintptr_t STUB_statfs(uintptr_t parm1, uintptr_t parm2); extern uintptr_t STUB_telldir(uintptr_t parm1); +extern uintptr_t STUB_fs_fdopen(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3); +extern uintptr_t STUB_sched_getstreams(void); + extern uintptr_t STUB_fsync(uintptr_t parm1); extern uintptr_t STUB_mkdir(uintptr_t parm1, uintptr_t parm2); extern uintptr_t STUB_mount(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); @@ -239,18 +242,18 @@ extern uintptr_t STUB_socket(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3); const union syscall_stubfunc_u *g_stublookup[SYS_nsyscalls] = { # undef STUB_LOOKUP1 -# define STUB_LOOKUP1(n,p) p +# define STUB_LOOKUP1(n,p) (union syscall_stubfunc_u *)p # undef STUB_LOOKUP -# define STUB_LOOKUP(n,p) , p +# define STUB_LOOKUP(n,p) , (union syscall_stubfunc_u *)p # include "stub_lookup.h" }; const uint8_t g_stubnparms[SYS_nsyscalls] = { # undef STUB_LOOKUP1 -# define STUB_LOOKUP1(n,p) { n } +# define STUB_LOOKUP1(n,p) n # undef STUB_LOOKUP -# define STUB_LOOKUP(n,p) , { n } +# define STUB_LOOKUP(n,p) , n # include "stub_lookup.h" }; diff --git a/nuttx/syscall/stub_lookup.h b/nuttx/syscall/stub_lookup.h index c20ebf262..112fdd16a 100644 --- a/nuttx/syscall/stub_lookup.h +++ b/nuttx/syscall/stub_lookup.h @@ -150,6 +150,12 @@ STUB_LOOKUP(3, STUB_up_assert_code) /* SYS_up_assert_code */ STUB_LOOKUP(2, STUB_stat) /* SYS_stat */ STUB_LOOKUP(2, STUB_statfs) /* SYS_statfs */ STUB_LOOKUP(1, STUB_telldir) /* SYS_telldir */ + +# if CONFIG_NFILE_STREAMS > 0 + STUB_LOOKUP(3, STUB_fs_fdopen) /* SYS_fs_fdopen */ + STUB_LOOKUP(0, STUB_sched_getstreams) /* SYS_sched_getstreams */ +#endif + # if !defined(CONFIG_DISABLE_MOUNTPOINT) STUB_LOOKUP(1, STUB_fsync) /* SYS_fsync */ STUB_LOOKUP(2, STUB_mkdir) /* SYS_mkdir */ diff --git a/nuttx/syscall/syscall.csv b/nuttx/syscall/syscall.csv index 35785bae6..4ec12f23b 100644 --- a/nuttx/syscall/syscall.csv +++ b/nuttx/syscall/syscall.csv @@ -13,6 +13,7 @@ "dup2","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int","int" "exit","stdlib.h","","void","int" "fcntl","fcntl.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int","int","..." +"fs_fdopen","nuttx/fs.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","FAR struct file_struct*","int","int","FAR _TCB*" "fsync","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","int" "get_errno","errno.h","","int" "getenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char*","FAR const char*" @@ -81,6 +82,7 @@ "rmdir","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*" "sched_getparam","sched.h","","int","pid_t","struct sched_param*" "sched_getscheduler","sched.h","","int","pid_t" +"sched_getstreams","nuttx/sched.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","FAR struct streamlist*" "sched_lock","sched.h","","int" "sched_lockcount","sched.h","","int32_t" "sched_rr_get_interval","sched.h","","int","pid_t","struct timespec*" |