📄 changelog
字号:
Tidy up naming of initializer macros to use for non-existent (initially) uITRON objects. Improve comments in CDL-- info fields. * include/uit_func.h: Add prototypes for cre/del_mpf/mpl(). * include/uit_func.inl: Implement cre/del_mpf/mpl(). * src/uit_objs.cxx: Support CYG_UIT_MEMPOOLFIXED_NOEXS/CYG_UIT_MEMPOOLVAR_NOEXS(...) mempool construction macros for non-existent (initially) mempools. Rename _NONE construction macros to _NOEXS which will make a lot more sense to uITRON folks.1998-10-14 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/pkgconf/uitron.h: Add configury for create/delete of tasks. * include/uit_func.h: Add prototypes for cre/del_tsk(); correct comment in exd_tsk(). * include/uit_func.inl: Implement cre/del_tsk() and complete exd_tsk(). Improve NULL/NADR checking on other cre/del calls. * src/uit_func.cxx (cyg_uitron_start): Deal better with start tasks stuff, for task create/delete. * src/uit_objs.cxx: Support CYG_UIT_TASK_NONE(...) task constructor for those tasks which do not initially exist * tests/PKGconf.mak: Add new tests test8.c, testcx[678].cxx to the build. * tests/test6.c: Tidy comments, untabify. * tests/test7.c: Tidy comments, untabify, test creation with NADR record pointer. No impact from the new cre/del_tsk() functionality on test7, since a task may only be deleted when it is dormant, so deletion is NOT another way out of a waiting state. * tests/test8.c: New test, tests cre_tsk() and del_tsk() and exd_tsk() ie. the creation and deletion of tasks. * tests/testcx6.cxx: * tests/testcx7.cxx: * tests/testcx8.cxx: New tests, C++ versions of tests 6, 7, and 8.1998-10-09 Hugo Tyson <hmt@cygnus.co.uk> * tests/test7.c: Test interactions with deleting objects (as applicable) and killing, signalling and the like. Also test killing the task after other treatments more generically. * tests/test6.c (task1): Change "N/A:" to "N/A" in the exit message when we didn't actually do any testing due to create/delete being disabled for all object types.1998-10-08 Hugo Tyson <hmt@masala.cygnus.co.uk> In general, these changes are to support create/delete of uITRON objects; this requires that an object can be destroyed whilst there are threads waiting on it, and that they shall be awoken with a specific return code E_DLT. The implementation uses an array of pointers in addition to the array of objects: ptrs[N] should either be NULL or &objs[N] in this version. That restriction is not checked, in order that in future, true dynamic allocation can be used, and ptrs[N] could point anywhere. The implications of this are mainly in the area of getting the addresses of objects, via the ptr array or from the object array? The config of whether there is a ptr array is per object type. * include/pkgconf/uitron.h: Configury of the existence or not of create/delete for object type: initially only SEMAS, MBOXES, FLAGS. Configury of the number of objects created initially, if cre/del are enabled. * tests/test6.c: * tests/test7.c: * tests/PKGconf.mak: Two new test programs (duh!): test6 tests create and delete of SEMAS, MBOXES, FLAGS explicitly, for bad params handling, ability to use after deletion and recreation &c &c. test7 tests the semantics of sleeping on some synchronization primitive, permed with suspension, signalling, killing, releasing and so forth. Both will migrate into C++ versions also in future. * include/uit_func.h: Enable cre/del_{mbx,flg,sem} prototypes. * include/uit_func.inl: Implement cre/del_{mbx,flg,sem} depending on configury, and handle the pointer arrays generally in other client routines. * include/uit_objs.hxx: Define the pointer arrays for access to created objects. * include/uit_type.h: Enable definitions of the structures used in create calls. * src/uit_func.cxx: Initialization code for the pointer arrays, akin to the task startup code. * src/uit_objs.cxx: Instantiate the pointer arrays themselves.1998-09-25 Bart Veer <bartv@cygnus.co.uk> * include/pkgconf/uitron.h: PR 17482: added #ifdef protection. If CYGPKG_UITRON_MEMPOOLFIXED is not defined then the contained option CYGNUM_UITRON_MEMPOOLFIXED may not be defined either. Ditto for CYGNUM_UITRON_MEMPOOLVAR which suffers from the same problem. And ditto for CYGPKG_UITRON_SEMAS1998-09-20 Mark Galassi <rosalia@cygnus.com> * include/pkgconf/uitron.h: added one or two CDL doc strings.Tue Sep 15 19:12:28 1998 David Moore <dsm@keema.cygnus.co.uk> * include/pkgconf/uitron.h: Cleaned up comments.1998-09-12 Mark Galassi <rosalia@cygnus.com>small changes to the descriptive information in the uITRON CDL1998-09-12 Mark Galassi <rosalia@cygnus.com> * include/pkgconf/uitron.h: small editing of the description fields: renamed things like <name> to NAME, so that it does not confuse SGML when incorporated into the documentation. Also added various "doc" fields to the CFG_DATA comments.Wed Sep 9 18:36:15 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/uit_func.inl: * include/uit_objs.hxx: * src/uit_objs.cxx: Condition features on CYGPKG_UITRON_SEMAS [for example] as well as 0 < CYG_UITRON_NUM( SEMAS ) so that we get warning free compilation with no semas enabled. Ditto for flags, mboxes, mempools fixed and variable, alarms and cyclics. * include/pkgconf/uitron.h: Add a couple of requires statements from cyclics and alarms on the kernel clock. Also change some grammar after review. Add an option (actually a pair, makes it better documentation IMO) to require strict semantics from the kernel setup. Add an option to control the optional sema initializer; it was omitted since the editor way of configury used a #if 0. Fri Sep 4 17:54:29 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/pkgconf/uitron.h: Remove redundant and now unnecessary defs of CYGPKG_UITRON.Wed Sep 2 19:06:17 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/uit_func.inl: Memory pools and message boxes and flags and cnt_sem2-type semaphores now all have absolute timeouts instead of relative ones in the timely wait functions. We add in the current time here first.Wed Sep 2 16:45:40 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/pkgconf/uitron.h (CYGDAT_UITRON_TASK_INITIALIZERS): Use the new kernel thread initializer with priority and thread name in it. * include/uit_func.inl: * include/uit_objs.hxx: * src/uit_func.cxx (cyg_uitron_start): * src/uit_objs.cxx: Our tasks are now Cyg_Threads rather than a derived class. Original priorities of tasks are held in an array. An accessor macro is used for the off-by-one nature of uitron IDs. The array of original priorities is set up in cyg_uitron_start(), and created in uit_objs.cxx. Wed Sep 2 15:15:26 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/pkgconf/uitron.h: Comment more strongly in the 'description' that the number of initializers better match the number of things specified.Tue Sep 1 19:00:02 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/uit_objs.hxx: Do not include <cyg/kernel/kernel.h>; it is deprecated. Instead, include only kernel headers that are needed. * include/uit_func.inl (ref_sys): Use new kernel function Cyg_Interrupt::interrupts_enabled() instead of a state variable. Tidy up associated code. Include kernel headers that are needed because they were not included in uit_objs.hxx for tidiness. * src/uit_func.cxx: Elide state variable that used to be used for tracking interrupt enabledness state. * tests/testcx5.cxx (task1): * tests/test5.c (task1): Test interrupt enable and disable stuff, and status reporting.Tue Sep 1 15:12:29 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/uit_func.inl (ref_mpf): Change comment "ECC" to "eCos".1998-08-28 Bart Veer <bartv@cygnus.co.uk> * include/uit_func.inl: * tests/test1.c, tests/test2.c, tests/test3.c, tests/test4.c, tests/test5.c, tests/testcxx.cxx, tests/testcx2.cxx, tests/testcx3.cxx, tests/testcx4.cxx, tests/testcx5.cxx: Updated for new kernel configuration option symbol namesFri Aug 28 09:21:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/uit_func.cxx (cyg_uitron_start): Remove call to Cyg_Scheduler::start() and adjust comments to explain where to call it from * tests/test1.c, tests/test2.c, tests/test3.c, tests/test4.c, tests/test5.c, tests/testcxx.cxx, tests/testcx2.cxx, tests/testcx3.cxx, tests/testcx4.cxx, tests/testcx5.cxx: Change the normal entry point at the top to be cyg_package_start() under the new startup scheme. This overrides the default package configuration and ensure cyg_uitron_start() gets called. Change the "default" entry point at the bottom (when the test is N/A for some reason) to cyg_start() under the new startup scheme. Wed Aug 26 18:20:47 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/pkgconf/uitron.h: Initial version of cdl control statements for config options. All very groovy, and looking good IMO. A few FIX-MEs remain, no big deal.Mon Aug 24 19:05:52 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/pkgconf/uitron.h: Change the names of config options to helpful, positive sense, and tidy some of the names for inclusion in the GUI tool. Clean up the namespace too. * include/uit_func.h: * include/uit_func.inl: * src/uit_func.cxx: * src/uit_objs.cxx: Configure according to new option names and object construction macros. Simple changes but widespread. * tests/test[12345].c: * tests/testcx[x2345].cxx: Configure according to new option names. Make it main( void ) to avoid a warning.Fri Aug 21 18:45:16 1998 Hugo Tyson <hmt@cygnus.co.uk> * tests/testcx4.cxx (task1): * tests/test4.c (task1): * include/uit_func.inl (def_alm): Tidy the alarm and timer funcs in the course of fixing a kernel bug actually. Test the functionality affected by the kernel change a bit more. Thu Aug 20 14:33:36 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/uit_func.inl (ref_alm): Elide an unused variable following the previous change.Mon Aug 17 15:45:07 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/pkgconf/uitron.h: Add the config option CYGSEM_UITRON_PARAMS_CHECK_NADR_ONLY. * tests/testcxx.cxx: * tests/testcx2.cxx: * tests/testcx4.cxx: Avoid testing with NULL as a bad parameter when only NADR is checked. (NADR does not cast to any-pointer in C++ so we don't test it in these programs) Check for NADR various places as well as NULL. * tests/test1.c (task1): * tests/test2.c (task1): * tests/test4.c (task1): Avoid testing with NULL as a bad parameter when only NADR is checked. Check for NADR various places as well as NULL, and test NADR as a bad param as well as NULL.Mon Aug 17 14:45:30 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/uit_func.inl: PR# 16536: Check for dormant tasks various places; E_OBJ must be returned. All this error checking rather bloats the code, unfortunately. * tests/testcxx.cxx: * tests/test1.c: Test the new checks above.Fri Aug 14 17:41:35 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/uit_func.inl ([t]wai/pol_flg): Check for zero in a wait-for-flag operation; such a wait can never be awakened, and so should return E_PAR. * tests/testcx2.cxx (task1): * tests/test2.c (task1): Test the above new checking.Fri Jul 24 17:12:54 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> PR#15865 * include/uit_func.inl: return a bool (strictly 1 or 0) for wtsk rather than -1 or zero as the spec implies. ref_flg() ref_sem() only affected.Fri Jul 24 13:26:51 1998 Hugo Tyson <hmt@cygnus.co.uk> PR#16531 * include/uit_func.inl: return E_OBJ when (force)resuming a non-suspended task. * tests/test1.c: test for that error code. * tests/testcxx.cxx: test for that error code.Fri Jul 24 13:02:46 1998 Hugo Tyson <hmt@cygnus.co.uk> * Changelog: Initial ChangeLog entry.//===========================================================================//####COPYRIGHTBEGIN####// // ------------------------------------------- // The contents of this file are subject to the Red Hat eCos Public License // Version 1.1 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://www.redhat.com/ // // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations under // the License. // // The Original Code is eCos - Embedded Configurable Operating System, // released September 30, 1998. // // The Initial Developer of the Original Code is Red Hat. // Portions created by Red Hat are // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. // All Rights Reserved. // ------------------------------------------- // //####COPYRIGHTEND####//===========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -