batt [Wed, 1 Oct 2008 21:05:33 +0000 (21:05 +0000)]
Add skel of i2c bitbang driver.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1865
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Sep 2008 15:46:29 +0000 (15:46 +0000)]
Add error check.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1864
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Sep 2008 15:03:38 +0000 (15:03 +0000)]
Document errors.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1863
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 29 Sep 2008 15:00:14 +0000 (15:00 +0000)]
Add error handling.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1862
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 27 Sep 2008 07:50:47 +0000 (07:50 +0000)]
Add missing include.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1861
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 22:24:36 +0000 (22:24 +0000)]
Add macro for shuffling an array.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1860
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 20:49:38 +0000 (20:49 +0000)]
Rename battfs_init to battfs_mount and battfs_close to battfs_umount.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1859
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 20:44:38 +0000 (20:44 +0000)]
Silence warning on 32bit platforms.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1858
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 16:05:07 +0000 (16:05 +0000)]
Fix warnings.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1857
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 16:04:42 +0000 (16:04 +0000)]
Reformat; fix a warning.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1856
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 15:48:19 +0000 (15:48 +0000)]
Improve readability using disk-> instead of fdb->disk->...
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1855
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 15:47:33 +0000 (15:47 +0000)]
Reformat.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1854
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 26 Sep 2008 15:00:21 +0000 (15:00 +0000)]
Add more tests; handle end of disk space correctly.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1853
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 25 Sep 2008 17:44:56 +0000 (17:44 +0000)]
Add missing semicolon; remove useless test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1852
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 25 Sep 2008 17:39:26 +0000 (17:39 +0000)]
Also fsck right after init.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1851
38d2e660-2303-0410-9eaa-
f027e97ec537
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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