bertos.git
16 years agoRemove unneeded goto.
batt [Thu, 25 Sep 2008 17:38:55 +0000 (17:38 +0000)]
Remove unneeded goto.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1850 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd filesystem consistency check.
batt [Thu, 25 Sep 2008 17:35:06 +0000 (17:35 +0000)]
Add filesystem consistency check.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1849 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix warnings.
batt [Thu, 25 Sep 2008 16:42:46 +0000 (16:42 +0000)]
Fix warnings.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1848 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAvoid flushing the same page twice.
batt [Thu, 25 Sep 2008 16:35:18 +0000 (16:35 +0000)]
Avoid flushing the same page twice.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1847 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor to fill sparse bytes with a known value (0).
batt [Thu, 25 Sep 2008 16:11:55 +0000 (16:11 +0000)]
Refactor to fill sparse bytes with a known value (0).

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1846 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agodisk->data_size now hold the space size usable by data inside a page.
batt [Thu, 25 Sep 2008 14:37:17 +0000 (14:37 +0000)]
disk->data_size now hold the space size usable by data inside a page.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1845 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd support for writing far over the EOF.
batt [Thu, 25 Sep 2008 13:59:37 +0000 (13:59 +0000)]
Add support for writing far over the EOF.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1844 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoReformat.
batt [Thu, 25 Sep 2008 13:59:32 +0000 (13:59 +0000)]
Reformat.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1843 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoHandle reading outside EOF.
batt [Wed, 24 Sep 2008 16:36:13 +0000 (16:36 +0000)]
Handle reading outside EOF.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1842 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRestore correct MODE type.
batt [Wed, 24 Sep 2008 16:22:07 +0000 (16:22 +0000)]
Restore correct MODE type.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1841 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoGive to each test a proper name.
batt [Wed, 24 Sep 2008 16:16:38 +0000 (16:16 +0000)]
Give to each test a proper name.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1840 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoUse correct inode_t type.
batt [Wed, 24 Sep 2008 15:29:40 +0000 (15:29 +0000)]
Use correct inode_t type.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1839 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove unneeded if.
batt [Wed, 24 Sep 2008 15:29:09 +0000 (15:29 +0000)]
Remove unneeded if.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1838 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor to automatically fill new page header on loading a new page.
batt [Tue, 23 Sep 2008 17:41:21 +0000 (17:41 +0000)]
Refactor to automatically fill new page header on loading a new page.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1837 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove cache of current header.
batt [Tue, 23 Sep 2008 17:31:01 +0000 (17:31 +0000)]
Remove cache of current header.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1836 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd a test.
batt [Tue, 23 Sep 2008 17:27:29 +0000 (17:27 +0000)]
Add a test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1835 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix moving other open files when a file is growing; add some log messages; fix positi...
batt [Tue, 23 Sep 2008 17:08:16 +0000 (17:08 +0000)]
Fix moving other open files when a file is growing; add some log messages; fix position computation when a new page is added to a file.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1834 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd some debug features.
batt [Tue, 23 Sep 2008 13:44:50 +0000 (13:44 +0000)]
Add some debug features.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1833 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd and fix some log messages; add dumpPageArray (for debugging purpose); fix countFi...
batt [Tue, 23 Sep 2008 13:34:11 +0000 (13:34 +0000)]
Add and fix some log messages; add dumpPageArray (for debugging purpose); fix countFilePages to stop at free space start.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1832 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd more write tests.
batt [Sun, 21 Sep 2008 12:51:03 +0000 (12:51 +0000)]
Add more write tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1831 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove duplicate "errir" string.
batt [Sun, 21 Sep 2008 12:50:15 +0000 (12:50 +0000)]
Remove duplicate "errir" string.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1830 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd another write test.
batt [Sat, 20 Sep 2008 13:23:14 +0000 (13:23 +0000)]
Add another write test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1829 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd max page offset allocated for the file; add some log and fix some typos.
batt [Sat, 20 Sep 2008 13:22:57 +0000 (13:22 +0000)]
Add max page offset allocated for the file; add some log and fix some typos.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1828 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd doc.
batt [Sat, 20 Sep 2008 10:58:34 +0000 (10:58 +0000)]
Add doc.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1827 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoDisable TRACEMSGs.
batt [Sat, 20 Sep 2008 10:54:04 +0000 (10:54 +0000)]
Disable TRACEMSGs.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1826 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoMore aggressive cache an read; rename some static method; getNewPage: new method...
batt [Sat, 20 Sep 2008 10:53:31 +0000 (10:53 +0000)]
More aggressive cache an read; rename some static method; getNewPage: new method; Add creation of new files and writing over EOF.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1825 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd caching of current header, add some docs.
batt [Sat, 20 Sep 2008 10:50:45 +0000 (10:50 +0000)]
Add caching of current header, add some docs.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1824 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd cache read API.
batt [Fri, 19 Sep 2008 20:12:32 +0000 (20:12 +0000)]
Add cache read API.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1823 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd more writing test.
batt [Fri, 19 Sep 2008 19:51:30 +0000 (19:51 +0000)]
Add more writing test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1822 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd missing page erase.
batt [Fri, 19 Sep 2008 19:39:22 +0000 (19:39 +0000)]
Add missing page erase.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1821 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd first write test.
batt [Fri, 19 Sep 2008 19:22:07 +0000 (19:22 +0000)]
Add first write test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1820 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd some log info; add a missing "!".
batt [Fri, 19 Sep 2008 19:21:36 +0000 (19:21 +0000)]
Add some log info; add a missing "!".

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1819 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoReformat.
batt [Fri, 19 Sep 2008 17:00:40 +0000 (17:00 +0000)]
Reformat.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1818 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSearch files only in used blocks.
batt [Fri, 19 Sep 2008 16:44:52 +0000 (16:44 +0000)]
Search files only in used blocks.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1817 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor countFileSize to return the size directly.
batt [Fri, 19 Sep 2008 16:32:15 +0000 (16:32 +0000)]
Refactor countFileSize to return the size directly.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1816 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix test, add some TRACE.
batt [Fri, 19 Sep 2008 16:26:41 +0000 (16:26 +0000)]
Fix test, add some TRACE.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1815 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd preliminary write support; initialize to 0xff the memory in battfs_writeTestBlock...
batt [Fri, 19 Sep 2008 16:26:14 +0000 (16:26 +0000)]
Add preliminary write support; initialize to 0xff the memory in battfs_writeTestBlock; implement battfs_flush.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1814 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSwitch to new disk write interface:the disk should now supply the write buffer.
batt [Thu, 18 Sep 2008 16:42:55 +0000 (16:42 +0000)]
Switch to new disk write interface:the disk should now supply the write buffer.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1813 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix doc; compile test only in UNIT_TEST.
batt [Tue, 16 Sep 2008 13:35:39 +0000 (13:35 +0000)]
Fix doc; compile test only in UNIT_TEST.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1812 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix battfs tests.
batt [Tue, 16 Sep 2008 13:25:35 +0000 (13:25 +0000)]
Fix battfs tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1811 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove dead code.
batt [Tue, 16 Sep 2008 12:48:18 +0000 (12:48 +0000)]
Remove dead code.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1810 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSimplify sequence numbering: now pages have a monotonically increasing sequence numnber.
batt [Tue, 16 Sep 2008 12:47:26 +0000 (12:47 +0000)]
Simplify sequence numbering: now pages have a monotonically increasing sequence numnber.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1809 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove dead code; Use LOG_ERR; Fix 2 typo.
batt [Mon, 15 Sep 2008 22:21:47 +0000 (22:21 +0000)]
Remove dead code; Use LOG_ERR; Fix 2 typo.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1808 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoStart to fix some tests.
batt [Mon, 15 Sep 2008 22:20:27 +0000 (22:20 +0000)]
Start to fix some tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1807 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoUpdate to new names and API.
batt [Mon, 15 Sep 2008 20:16:13 +0000 (20:16 +0000)]
Update to new names and API.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1806 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoVery preliminary: remove from BattFS the LRU of free blocks; now the old blocks are...
batt [Mon, 15 Sep 2008 17:28:29 +0000 (17:28 +0000)]
Very preliminary: remove from BattFS the LRU of free blocks; now the old blocks are left on the disk with an old seq number.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1805 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix docs; optimization.
batt [Fri, 12 Sep 2008 10:39:57 +0000 (10:39 +0000)]
Fix docs; optimization.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1804 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove old battfs_test leftover.
batt [Thu, 11 Sep 2008 16:33:34 +0000 (16:33 +0000)]
Remove old battfs_test leftover.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1803 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoUnbreak battfs_test: comply with new policy.
batt [Thu, 11 Sep 2008 16:32:55 +0000 (16:32 +0000)]
Unbreak battfs_test: comply with new policy.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1802 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoTypo.
batt [Wed, 10 Sep 2008 09:50:26 +0000 (09:50 +0000)]
Typo.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1801 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRename macros.
batt [Mon, 8 Sep 2008 14:01:50 +0000 (14:01 +0000)]
Rename macros.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1800 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd new config directive.
batt [Fri, 5 Sep 2008 17:38:08 +0000 (17:38 +0000)]
Add new config directive.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1799 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd generic kfile_close.
batt [Fri, 5 Sep 2008 17:31:32 +0000 (17:31 +0000)]
Add generic kfile_close.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1798 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoUse correct type, change test condition.
batt [Fri, 5 Sep 2008 17:30:50 +0000 (17:30 +0000)]
Use correct type, change test condition.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1797 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd missing cast.
batt [Fri, 5 Sep 2008 17:23:37 +0000 (17:23 +0000)]
Add missing cast.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1796 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor eeprom driver to use kfile interface.
batt [Fri, 5 Sep 2008 17:19:23 +0000 (17:19 +0000)]
Refactor eeprom driver to use kfile interface.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1795 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor eeprom driver to use kfile interface.
batt [Fri, 5 Sep 2008 17:17:44 +0000 (17:17 +0000)]
Refactor eeprom driver to use kfile interface.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1794 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd config option for calling schedule() from kbd_peek().
batt [Fri, 5 Sep 2008 16:21:53 +0000 (16:21 +0000)]
Add config option for calling schedule() from kbd_peek().

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1793 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor timer prescaler handling.
batt [Fri, 5 Sep 2008 16:12:40 +0000 (16:12 +0000)]
Refactor timer prescaler handling.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1792 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor AVR twi driver to supply twi_get; add ATMega32 support.
batt [Fri, 5 Sep 2008 16:09:24 +0000 (16:09 +0000)]
Refactor AVR twi driver to supply twi_get; add ATMega32 support.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1791 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRefactor AVR twi driver to supply twi_get; add ATMega32 support.
batt [Fri, 5 Sep 2008 16:08:42 +0000 (16:08 +0000)]
Refactor AVR twi driver to supply twi_get; add ATMega32 support.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1790 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd debug support for ATMega32.
batt [Fri, 5 Sep 2008 15:42:24 +0000 (15:42 +0000)]
Add debug support for ATMega32.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1789 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd detect for ATMega32.
batt [Fri, 5 Sep 2008 14:44:06 +0000 (14:44 +0000)]
Add detect for ATMega32.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1788 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoStart to develop a dummy app for Luminary Micro Stellaris. It need a startup routine...
qwert [Thu, 4 Sep 2008 16:52:11 +0000 (16:52 +0000)]
Start to develop a dummy app for Luminary Micro Stellaris. It need a startup routine..coming soon.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1787 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoMove all cortex-m3 stuff in dedicated directory.
qwert [Thu, 4 Sep 2008 16:46:10 +0000 (16:46 +0000)]
Move all cortex-m3 stuff in dedicated directory.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1786 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd a new family of core: "Cortex-M3". This cpu have a different architecture compare...
qwert [Thu, 4 Sep 2008 16:44:45 +0000 (16:44 +0000)]
Add a new family of core: "Cortex-M3". This cpu have a different architecture compared to other arm cpus. One of the most things that
makes cortex core different from others arm cpu is the ISA: Only thumb2 instruction set is supported by this core.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1785 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemoved startup routine.
qwert [Thu, 4 Sep 2008 16:24:25 +0000 (16:24 +0000)]
Removed startup routine.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1784 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSilence TODO and FIXME in nightly test.
batt [Thu, 4 Sep 2008 16:21:08 +0000 (16:21 +0000)]
Silence TODO and FIXME in nightly test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1783 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd support for luminary micro lm3s1968 board
qwert [Thu, 4 Sep 2008 16:19:47 +0000 (16:19 +0000)]
Add support for luminary micro lm3s1968 board

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1782 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd support for LM3S1968 board based on cortex-m3 cpu
qwert [Thu, 4 Sep 2008 16:18:55 +0000 (16:18 +0000)]
Add support for LM3S1968 board based on cortex-m3 cpu

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1781 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd support for LM3S1968 board.
qwert [Thu, 4 Sep 2008 16:17:29 +0000 (16:17 +0000)]
Add support for LM3S1968 board.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1780 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd startup routine for Luminary Micro Stellaris LM3S1968
qwert [Thu, 4 Sep 2008 16:16:27 +0000 (16:16 +0000)]
Add startup routine for Luminary Micro Stellaris LM3S1968

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1779 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoLuminary Micro Stellaris LM3S1968 script files.
qwert [Thu, 4 Sep 2008 15:58:57 +0000 (15:58 +0000)]
Luminary Micro Stellaris LM3S1968 script files.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1778 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd ft245rl usb to parallel converter driver.
batt [Thu, 4 Sep 2008 15:19:48 +0000 (15:19 +0000)]
Add ft245rl usb to parallel converter driver.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1777 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRemove duplicate proc_current function.
batt [Wed, 3 Sep 2008 14:11:01 +0000 (14:11 +0000)]
Remove duplicate proc_current function.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1776 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoThis makes proc_test actually compile and pass:
bernie [Wed, 3 Sep 2008 08:54:10 +0000 (08:54 +0000)]
This makes proc_test actually compile and pass:

 - use emul_idle() only when we have Qt

 - enable CONFIG_KERN_PREEMPT in generic config

Not sure why preemption was disabled in the first place.
It's required to pass proc_test.  Will commit this change if
noone complains within the next 24h.

This patch comes to you from Doha's airport with love!

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1775 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoproc_current(): Move inline.
bernie [Wed, 3 Sep 2008 08:17:53 +0000 (08:17 +0000)]
proc_current(): Move inline.

This should speedup things AND reduce both code size, without exposing
too much of the scheduler guts to our valued l^Husers.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1774 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSCHED_ENQUEUE: tighten checks on locking
bernie [Wed, 3 Sep 2008 08:17:51 +0000 (08:17 +0000)]
SCHED_ENQUEUE: tighten checks on locking

Factor out the two different implementations and ensure
modifications happen with inteerrupts disabled.  This uncovered
a latent bug in our semaphore sleep code.

Also explicitly document our locking requirements for ProcReadyList.
The comment previously claimed that proc_forbid() would offer enough
protection, which is, of course, bullshit.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1773 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agolist: check against double node insertion
bernie [Wed, 3 Sep 2008 08:05:55 +0000 (08:05 +0000)]
list: check against double node insertion

Tighten debug consistency checks in ADDHEAD(), ADDTAIL() and ENQUEUE()
through the macro LIST_ASSERT_NOT_CONTAINS().  Suggestions for a
better name very welcome.

This check is expensive (O(n)) and too permissive, as what we should
really check for is the node not being already part of *any* list.

This could be simplified by changing the list API to demand
pre-initialization of the node pointers to NULL.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1772 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoMWARE_XXX_H -> NET_XXX_H
bernie [Sun, 31 Aug 2008 21:45:08 +0000 (21:45 +0000)]
MWARE_XXX_H -> NET_XXX_H

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1771 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoMWARE_XXX_H -> STRUCT_XXX_H
bernie [Sun, 31 Aug 2008 21:45:01 +0000 (21:45 +0000)]
MWARE_XXX_H -> STRUCT_XXX_H

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1770 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoproc_test: print process table during test
bernie [Sun, 31 Aug 2008 21:44:56 +0000 (21:44 +0000)]
proc_test: print process table during test

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1769 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agomonitor: set process priority to -10
bernie [Sun, 31 Aug 2008 11:31:17 +0000 (11:31 +0000)]
monitor: set process priority to -10

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1768 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agodemo: run monitor process
bernie [Sun, 31 Aug 2008 11:31:05 +0000 (11:31 +0000)]
demo: run monitor process

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1767 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoAdd GDB support for debugging preemptive kernel
bernie [Sun, 31 Aug 2008 06:58:37 +0000 (06:58 +0000)]
Add GDB support for debugging preemptive kernel

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1766 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoReformat: use tabs.
batt [Fri, 29 Aug 2008 22:15:21 +0000 (22:15 +0000)]
Reformat: use tabs.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1765 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix ramp_test.
batt [Fri, 29 Aug 2008 22:11:21 +0000 (22:11 +0000)]
Fix ramp_test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1764 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix sprintf_test.
batt [Fri, 29 Aug 2008 21:45:58 +0000 (21:45 +0000)]
Fix sprintf_test.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1763 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRename hw-related tests.
batt [Fri, 29 Aug 2008 20:47:37 +0000 (20:47 +0000)]
Rename hw-related tests.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1762 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agorename cpuXXX_t to cpu_XXX_t
bernie [Fri, 29 Aug 2008 20:37:03 +0000 (20:37 +0000)]
rename cpuXXX_t to cpu_XXX_t

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1761 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agopreempt_forbid_cnt: make it of type cpuatomic_t
bernie [Fri, 29 Aug 2008 20:36:39 +0000 (20:36 +0000)]
preempt_forbid_cnt: make it of type cpuatomic_t

This takes care of archs such as the AVR, where int is bigger than the
word size, and updating preempt_forbid_cnt might actually result in two
independent writes.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1760 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agocpu: introduce cpuatomic_t
bernie [Fri, 29 Aug 2008 20:36:21 +0000 (20:36 +0000)]
cpu: introduce cpuatomic_t

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1759 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix documentation.
batt [Fri, 29 Aug 2008 20:32:50 +0000 (20:32 +0000)]
Fix documentation.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1758 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoDrop the magical test macros.
batt [Fri, 29 Aug 2008 20:18:09 +0000 (20:18 +0000)]
Drop the magical test macros.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1757 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix UNITTEST ARCH declaration.
batt [Fri, 29 Aug 2008 20:16:34 +0000 (20:16 +0000)]
Fix UNITTEST ARCH declaration.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1756 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoproc_forbid(): extensively document why we don't need locking
bernie [Fri, 29 Aug 2008 19:56:18 +0000 (19:56 +0000)]
proc_forbid(): extensively document why we don't need locking

Also change the ASSERT() in proc_permit() to check for != 0, as a
workaround for CPUs like the AVR which are unable to write an int to
memory atomically.

A better fix would be changing the type of preempt_forbid_cnt to
cpu_stack_t or a new type cpu_atomic_t.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1755 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRevert bad commit.
batt [Fri, 29 Aug 2008 16:09:03 +0000 (16:09 +0000)]
Revert bad commit.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1754 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoFix some warnings for printf arguments.
batt [Fri, 29 Aug 2008 16:08:11 +0000 (16:08 +0000)]
Fix some warnings for printf arguments.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1753 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoSilence a warning on 64bit platforms.
batt [Fri, 29 Aug 2008 15:48:11 +0000 (15:48 +0000)]
Silence a warning on 64bit platforms.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1752 38d2e660-2303-0410-9eaa-f027e97ec537

16 years agoRestore preempt_forbid_cnt as private; supply an accessor macro.
batt [Fri, 29 Aug 2008 15:21:53 +0000 (15:21 +0000)]
Restore preempt_forbid_cnt as private; supply an accessor macro.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1751 38d2e660-2303-0410-9eaa-f027e97ec537