Commit Graph

132 Commits

Author SHA1 Message Date
Giovanni Di Sirio f3d3d9fcf7 vfsGetStat() function renamed to vfsGetNodeStat() because we need to introduce also the equivalent of stat()/lstat().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15458 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-11 13:07:14 +00:00
Giovanni Di Sirio 0f368ef8b8 Added "mode" parameter to mkdir().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15429 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-02 18:42:19 +00:00
Giovanni Di Sirio 00684c677d Removed legacy stdio in SBs.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15410 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-27 08:40:53 +00:00
Giovanni Di Sirio 2cc33be4be Removed temporary files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15401 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-23 06:29:33 +00:00
Giovanni Di Sirio 3ee7d28428 Added chdir() and getcwd().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15381 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-21 09:20:28 +00:00
Giovanni Di Sirio 33540de167 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15375 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-18 10:32:57 +00:00
Giovanni Di Sirio d35ba8cd7e git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15368 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-17 14:53:26 +00:00
Giovanni Di Sirio 59684fb925 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15364 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-16 12:47:32 +00:00
Giovanni Di Sirio 377fdec495 Implemented sandbox state cleanup on exit() or exception.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15363 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-16 09:11:15 +00:00
Giovanni Di Sirio 62ea184237 Fixed initial stack setup.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15361 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-15 18:00:49 +00:00
Giovanni Di Sirio 35c733568a Some more optimizations.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15360 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-15 17:19:17 +00:00
Giovanni Di Sirio 305bc3a8ed Size optimizations.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15359 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-15 16:57:24 +00:00
Giovanni Di Sirio c1ee7b08b5 Added sbExec() function.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15358 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-15 13:29:11 +00:00
Giovanni Di Sirio c65d695093 Loading and passing arguments/variables working now.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15357 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-14 12:51:03 +00:00
Giovanni Di Sirio 077634725f More memory checking code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15356 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-13 20:02:03 +00:00
Giovanni Di Sirio 277d9540a3 Fixed wrong condition in sbIsThreadRunningX().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15355 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-13 14:49:25 +00:00
Giovanni Di Sirio 6047661c76 Extended SB header, all relocations working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15354 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-13 13:42:29 +00:00
Giovanni Di Sirio f2083ce6d6 Support for arguments and environment variables, to be completed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15353 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-13 10:53:55 +00:00
Giovanni Di Sirio d6eb9a4d94 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15351 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-13 09:50:04 +00:00
Giovanni Di Sirio fc682f0337 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15346 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-12 13:58:10 +00:00
Giovanni Di Sirio e3e8d3d645 Improved loader. More memory check functions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15345 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-12 13:00:47 +00:00
Giovanni Di Sirio b48f8ebdaa Some renaming for consistency, new check function added, documentation fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15344 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-12 09:04:41 +00:00
Giovanni Di Sirio 44ccf3952d git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15343 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-11 14:01:19 +00:00
Giovanni Di Sirio 484b515ee1 Fixed an LD behavior when sections are empty (always WRITE ALLOC).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15342 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-11 11:01:57 +00:00
Giovanni Di Sirio 3bceb7fd9d git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15340 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-10 16:36:03 +00:00
Giovanni Di Sirio 9fa0d5ecf8 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15339 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-09 16:28:18 +00:00
Giovanni Di Sirio ea26424d45 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15323 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-09 06:18:43 +00:00
Giovanni Di Sirio c4de483c47 Worked on a very simple test case.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15322 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-08 14:37:32 +00:00
Giovanni Di Sirio 37010bf285 Still bugs to be fixed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15321 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-08 14:11:29 +00:00
Giovanni Di Sirio a782af6212 More work on the loader, still not finished.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15320 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-08 12:47:49 +00:00
Giovanni Di Sirio ac756cdf84 Debug pass on the loader, it is not finished yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15319 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-07 13:02:28 +00:00
Giovanni Di Sirio 4532dd9243 More loader code, not finished yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15318 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-06 08:01:46 +00:00
Giovanni Di Sirio 9ab7bf1d5b Experimental code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15317 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-05 10:10:43 +00:00
Giovanni Di Sirio 7f29f49f66 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15316 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-04 12:58:43 +00:00
Giovanni Di Sirio 913887ce72 Bugs fixed, many more to fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15311 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-02 14:04:44 +00:00
Giovanni Di Sirio f0ce0fddbd Added directory functions missing in the embedded library.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15307 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-02 10:14:41 +00:00
Giovanni Di Sirio 7677592f4a git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15303 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2022-01-01 17:25:16 +00:00
Giovanni Di Sirio b4eeb2918f Added fstat().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15300 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-01 06:09:08 +00:00
Giovanni Di Sirio 4c5b9b9421 Added dup() and dup2().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15299 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-31 16:33:23 +00:00
Giovanni Di Sirio a557acbcd2 Simplified some SB Posix stuff.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15297 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-31 14:06:43 +00:00
Giovanni Di Sirio 2b7b971aaa Unified stat() for both files and directories.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15294 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-31 08:21:52 +00:00
Giovanni Di Sirio 068ebf8f21 Fixed node modes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15293 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-30 17:57:25 +00:00
Giovanni Di Sirio 389071a42a Added 2 new sandbox applications for testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15291 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-30 12:26:38 +00:00
Giovanni Di Sirio 32e59f57fd Simplified lseek() implementation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15283 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-29 21:02:00 +00:00
Giovanni Di Sirio 0bfd995bc9 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15282 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-29 20:10:52 +00:00
Giovanni Di Sirio 6751fc38ee SB-VFS integration working in the demo.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15280 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-29 16:00:10 +00:00
Giovanni Di Sirio c6015620db git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15274 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-28 14:01:59 +00:00
Giovanni Di Sirio 6c35d59058 Better mapping of Posix error codes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15268 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 13:25:13 +00:00
Giovanni Di Sirio 6810ebca2d Added a configuration file for sandboxes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15267 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 12:56:46 +00:00
Giovanni Di Sirio 046eefc043 Changed SB configuration options names to be prefixed with SB_CFG_.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15266 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 12:35:47 +00:00
Giovanni Di Sirio 0d3278d54f Renamed memory_region_t in memory_area_t because naming confusion with MPU regions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15098 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-16 18:02:57 +00:00
Giovanni Di Sirio 7bd05fc08f Initial SB rework.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15097 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-16 17:45:29 +00:00
Giovanni Di Sirio d0cc26c4ed Documentation-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14907 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-10-13 12:47:39 +00:00
Giovanni Di Sirio de716ad412 Fixed SB messages with timeout.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14905 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-10-13 09:27:02 +00:00
Giovanni Di Sirio c6b5034fb9 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14902 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-10-12 12:04:21 +00:00
Giovanni Di Sirio f87f0d1d65 Dynamic regions support and demo, to be tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14901 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-10-12 08:48:07 +00:00
Giovanni Di Sirio b84aca5137 Added a global event for sandboxes monitoring.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14899 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-10-12 07:17:56 +00:00
Giovanni Di Sirio 5d7006ac84 New SB API working, it breaks the old demo, to be reworked or removed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14896 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-10-11 13:40:47 +00:00
Giovanni Di Sirio 4e7c68d45f git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14445 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-05-30 10:57:30 +00:00
Giovanni Di Sirio 3be977634b More consistency changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14348 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-05-07 09:52:47 +00:00
Giovanni Di Sirio 9d617edee6 Restored SB functionality with RT7.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14327 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-04-25 15:16:41 +00:00
Giovanni Di Sirio 8646bb3153 License update.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14105 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-03-29 15:24:45 +00:00
Giovanni Di Sirio a4e9fc5170 Identification macros such as__CHIBIOS_RT__ are now prefixed by two underscores.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13808 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2020-08-10 12:30:19 +00:00
Giovanni Di Sirio ac68344811 Safer messages mechanism for sandboxes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13467 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2020-03-21 10:36:11 +00:00
Giovanni Di Sirio af38956b67 FPU-related code in SB.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13000 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-19 06:12:53 +00:00
Giovanni Di Sirio f081b654b3 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12997 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2019-09-17 14:53:05 +00:00
Giovanni Di Sirio 23c690f57c Pointer checks at API level.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12996 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-16 13:27:53 +00:00
Giovanni Di Sirio 2224bd26a7 Debugging....
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12993 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-15 14:55:04 +00:00
Giovanni Di Sirio d494f3899d Sandbox-side file API.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12992 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-15 07:24:28 +00:00
Giovanni Di Sirio 44098212ab New files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12991 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-15 07:03:12 +00:00
Giovanni Di Sirio 3500272800 Adopted Posix-like error codes for the sandbox. Implemented stdin, stdout and stderr as separate streams.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12990 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-15 06:42:02 +00:00
Giovanni Di Sirio f7d500c20f Posix API preparation, not complete. Added license checks for SB.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12989 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-14 15:44:50 +00:00
Giovanni Di Sirio 328ab9ae0f More fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12988 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-14 05:46:55 +00:00
Giovanni Di Sirio 0ee0140b2b White space fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12987 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 15:25:54 +00:00
Giovanni Di Sirio 3de1374e38 Removed regarm_t from ARMCMx port, changed SB API return method.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12986 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 15:24:41 +00:00
Giovanni Di Sirio 43d1c573bc Code organization changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12985 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 14:48:51 +00:00
Giovanni Di Sirio bba90d0866 Fixes and new sbWait() API.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12984 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 13:54:25 +00:00
Giovanni Di Sirio ad2a66cd42 Better errors handling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12983 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 13:41:54 +00:00
Giovanni Di Sirio 9c7d9ba26e More API.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12982 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-13 08:22:10 +00:00
Giovanni Di Sirio 26b29a6925 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12981 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2019-09-12 12:38:58 +00:00
Giovanni Di Sirio 6de7825d13 Sandbox concept refinements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12980 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-11 12:53:31 +00:00
Giovanni Di Sirio a2e373d78d Missing files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12979 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2019-09-11 04:18:11 +00:00