📄 changelog
字号:
* tests/kmemvar1.c: * tests/mbox1.cxx: * tests/memfix1.cxx: * tests/memvar1.cxx: Memory pool (both types) and message boxes (both types) and flags and cnt_sem2-type semaphores now all have absolute timeouts instead of relative ones in the timely wait functions. uITRON has changed to add the current time itself. Kapi changes are mainly name changes to make it clear that timeouts are now absolute. The tests (incl. kapi) add in the time themselves now. 1998-09-01 Tim Goodwin <tgoodwin@cygnus.co.uk> * include/kapi.h: * src/common/kapi.cxx: * tests/kclock1.c: * tests/kexcept1.c: * tests/kmbox1.c: * tests/kmemfix1.c: * tests/kmemvar1.c: * tests/kmutex1.c: * tests/ksched1.c: * tests/ksem1.c: * tests/kthread0.c: * tests/kthread1.c: * src/test/kcache1.c: * src/test/kphilo.c: * tests/kphilo.c: * tests/lottery.c: Changes to cyg_thread_create() interface.Tue Sep 1 18:49:06 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * include/pkgconf/kernel.h: Moved and renamed CYG_DIAG_USE_DEVICE to infra and to CYGDBG_INFRA_DIAG_USE_DEVICE; kernel.h now includes infra.h as well as hal.h to ensure all its clients get the info too. * include/intr.hxx (class Cyg_Interrupt): Add static member interrupts_enabled() to poll the current status; just to avoid calling the HAL directly, really. * include/diag.h: Now just includes cyg/infra/diag.h, so that kernel-specific features can be added later - original diag.h has moved to infra, and is that includee. * src/PKGconf.mak: Trace folder and its contents elided, now in infra. * src/trace/diag.c: * src/trace/fancy.cxx: * src/trace/null.cxx: * src/trace/simple.cxx: * src/trace/tcdiag.cxx: Deleted; all moved to infra, actually.1998-09-01 Nick Garnett <nickg@cygnus.co.uk> * src/debug/dbg-threads-api.h: * src/debug/dbg_gdb.cxx: Converted threadref from long long to char[8] as defined by Cygmon guys. * src/common/thread.cxx: Added scheduler lock around manipulations of thread list. * include/except.hxx: Now use CYG_EXCEPTION_COUNT to size handler arrays.Mon Aug 31 17:53:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/memfixed.hxx, include/mempolt2.hxx, include/mempolt2.inl, include/mempoolt.hxx, include/mempoolt.inl, include/memvar.hxx, include/mvarimpl.hxx, include/mvarimpl.inl, src/mem/memfixed.cxx, src/mem/memvar.cxx: Add new get_allocation_size() method to return the size of a previously allocated block - trivial for fixed block allocator, and requiring a bit of poking around for the variable block allocator. This is required for the C library realloc() implementation. Strictly this only uses the variable block allocator, but the API can only be enhanced by also updating the template. As a result, this also meant doing it for the fixed block allocator. Mon Aug 31 09:51:37 1998 Jesper Skov <jskov@cygnus.co.uk> * src/debug/stubrom.c (cyg_start): Renamed from main().Mon Aug 31 09:00:01 1998 Jesper Skov <jskov@cygnus.co.uk> * src/common/thread.cxx: Fixed typo.1998-08-28 Bart Veer <bartv@cygnus.co.uk> * include/pkgconf/kernel.h, include/bitmap.hxx, include/clock.hxx, include/except.hxx, include/flag.hxx, include/instrmnt.h, include/intr.hxx, include/kapi.h, include/kapidata.h, include/mbox.hxx, include/mboxt.hxx, include/mboxt.inl, include/mboxt2.hxx, include/mboxt2.inl, include/memfixed.hxx, include/mempolt2.hxx, include/mempolt2.inl, include/mempoolt.hxx, include/mempoolt.inl, include/memvar.hxx, include/mlqueue.hxx, include/mutex.hxx, include/mvarimpl.inl, include/sched.hxx, include/sema.hxx, include/sema2.hxx, include/thread.hxx, include/thread.inl, include/pkgconf/kernel.h: src/common/clock.cxx, src/common/except.cxx, src/common/kapi.cxx, src/common/thread.cxx, src/debug/dbg_gdb.cxx, src/debug/generic-stub.c, src/instrmnt/meminst.cxx, src/instrmnt/nullinst.cxx, src/intr/intr.cxx, src/mem/memfixed.cxx, src/mem/memvar.cxx, src/sched/bitmap.cxx, src/sched/lottery.cxx, src/sched/mlqueue.cxx, src/sched/sched.cxx, src/sync/cnt_sem.cxx, src/sync/cnt_sem2.cxx, src/sync/flag.cxx, src/sync/mbox.cxx, src/sync/mutex.cxx, src/test/diag.cxx, src/test/kcache1.c, src/test/main.cxx, src/test/timer.cxx, src/test/tstmbox.cxx: tests/clock0.cxx, tests/clock1.cxx, tests/except1.cxx, tests/flag1.cxx, tests/intr0.cxx, tests/kclock0.c, tests/kclock1.c, tests/kexcept1.c, tests/kintr0.c, tests/kmbox1.c, tests/kmemfix1.c, tests/kmemvar1.c, tests/kmutex0.c, tests/kmutex1.c, tests/ksched1.c, tests/ksem0.c, tests/ksem1.c, tests/kthread0.c, tests/kthread1.c, tests/lottery.c, tests/mbox1.cxx, tests/memfix1.cxx, tests/memvar1.cxx, tests/sync3.cxx, tests/thread2.cxx : Provide configuration data and rename configuration optionsFri Aug 28 15:27:31 1998 Hugo Tyson <hmt@cygnus.co.uk> * src/trace/fancy.cxx: * src/trace/simple.cxx: * src/trace/null.cxx: Condition on newly named symbols from the infra package, whence these units will be moved soon. Fri Aug 28 09:33:17 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/test/demo.cxx, src/test/kcache1.c, src/test/kphilo.c, src/test/main.cxx, src/test/philo.cxx, src/test/sload.c, src/test/timer.cxx, src/test/tstflag.cxx, src/test/tstmbox.cxx, src/test/tstmpf.cxx, src/test/tstmpool.cxx, src/test/tsttracc.c, src/test/tsttrace.cxx, tests/bin_sem0.cxx, tests/bin_sem1.cxx, tests/bin_sem2.cxx, tests/clock0.cxx, tests/clock1.cxx, tests/cnt_sem0.cxx, tests/cnt_sem1.cxx, tests/except1.cxx, tests/flag0.cxx, tests/flag1.cxx, tests/intr0.cxx, tests/kclock0.c, tests/kclock1.c, tests/kexcept1.c, tests/kill.cxx, tests/kintr0.c, tests/kmbox1.c, tests/kmemfix1.c, tests/kmemvar1.c, tests/kmutex0.c, tests/kmutex1.c, tests/kphilo.c, tests/ksched1.c, tests/ksem0.c, tests/ksem1.c, tests/kthread0.c, tests/kthread1.c, tests/lottery.c, tests/mbox1.cxx, tests/memfix1.cxx, tests/memfix2.cxx, tests/memvar1.cxx, tests/memvar2.cxx, tests/mutex0.cxx, tests/mutex1.cxx, tests/philo.cxx, tests/release.cxx, tests/sched1.cxx, tests/sync2.cxx, tests/sync3.cxx, tests/thread0.cxx, tests/thread1.cxx, tests/thread2.cxx: Change entry points from main() to cyg_start(), and remove return codes - while main returned an int, cyg_start() returns void. It has no meaning anyway - what could you do with the code? * src/test/tsttracc.c, src/test/tsttrace.cxx: Also change trace calls (CYG_REPORT_...) to reflect that it is a function called cyg_start with no args returning void, rather than what it was for main(argc, argv)Fri Aug 28 09:24:41 1998 Jesper Skov <jskov@cygnus.co.uk> * src/debug/generic-stub.c: Moved strcpy/strlen from hal-stub to generic-stub. Cleaned up a bit to avoid compiler warnings.Thu Aug 27 19:22:51 1998 Hugo Tyson <hmt@cygnus.co.uk> * tests/kphilo.c (Philosopher): * tests/philo.cxx (Philosopher): * src/test/philo.cxx (Philosopher): * src/test/kphilo.c (Philosopher): * src/common/kapi.cxx: Change CYG_RELEASE_DEBUG to CYGPKG_INFRA_DEBUG. These changes are self-contained, so they can go in right now. Thu Aug 27 15:20:31 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/mvarimpl.inl (free): Remove a couple of warning due to pointer comparison without casts in coallesce(sic.) code.1998-08-26 Nick Garnett <nickg@cygnus.co.uk> * include/kapidata.h: Added saved_context to cyg_hardwarethread structure to track GDB support in rest of kernel.1998-08-25 Nick Garnett <nickg@cygnus.co.uk> * include/pkgconf/kernel.h: Added CYGIMP_KERNEL_THREAD_GDB_SUPPORT to configure for GDB interactions with the kernel. * src/debug/dbg-threads-api.h: * src/debug/dbg_gdb.cxx: Added these files to repository to support GDB interactions with the kernel. Note that dbg-threads-api.h is a copy of a file in devo/libstub. Any changes there must be merged in here too. * src/PKGconf.mak: Added debug/dbg_gdb.cxx to COMPILE list. * include/thread.inl: * include/thread.hxx: Added support for GDB, specifically for thread-aware debugging. * include/intr.hxx: * src/intr/intr.cxx: Added an extra argument to interrupt_end(): a pointer to the saved register state. This is optionally used to provide a more interesting saved register state for GDB.Tue Aug 25 02:36:26 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/generic-stub.h: Add void to empty prototype argument lists to silence compiler warningsFri Aug 21 18:46:34 1998 Hugo Tyson <hmt@cygnus.co.uk> * src/common/clock.cxx (enable): Make the maths work right if we only just set up the clock thingy. Unsigned has a lot to answer for; when the next scheduled tick was all correct, the delta was -1, which correctly rounds to zero in the division. But it isn't -1 it's 18446744073709551615 which gave a shift of 15 in the the uITRON test programs.Fri Aug 21 11:40:50 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/mboxt2.inl (put): * include/mempolt2.inl (alloc): Tidy Nick's changes (1998-07-27) for set_timer() semantics a bit, make it a bit more efficient and smaller code. Thu Aug 20 17:37:35 BST 1998 Chris Provenzano <proven@cygnus.com> * include/mvarimpl.inl, include/pkgconf/kernel.h: Added memory coallecsing to the variable size memory allocator. This option is enabled my default. * tests/stdlib/malloc2.c: Only print 50 messages, not 500.1998-08-20 Nick Garnett <nickg@cygnus.co.uk> * include/pkgconf/kernel.h: Moved definition of CYG_KERNEL_USE_INIT_PRIORITY from here to hal.h. * include/thread.hxx: Changed argument to cyg_thread_entry() to CYG_ADDRWORD from CYG_ADDRESS. * include/ktypes.h: Moved constructor priority ordering stuff out to infra/cyg_type.h. * include/kapi.h: * src/common/kapi.cxx: Added name and priority parameters to cyg_thread_create() and swapped stack size and base parameters. These changes are currently protected by DAY_OF_CHAOS ifdefs and are therefore inactive.Wed Aug 19 19:06:16 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/bin_sem1.cxx, tests/bin_sem2.cxx, tests/cnt_sem1.cxx, tests/flag1.cxx, tests/mbox1.cxx, tests/memfix2.cxx, tests/memvar2.cxx, tests/sync2.cxx, tests/sync3.cxx, tests/thread2.cxx, tests/release.cxx, tests/kill.cxx: Reorder inclusion of thread.inl to silence warningsWed Aug 19 18:48:03 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/kernel.hxx: Reorder inclusion of thread.inl to silence warningsWed Aug 19 18:21:31 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/common/kapi.cxx, src/sync/flag.cxx: Reorder inclusion of thread.inl to silence warnings * src/sync/bin_sem.cxx, src/sync/cnt_sem.cxx, src/sync/cnt_sem2.cxx, src/sync/mbox.cxx: Add inclusion of thread.inl to silence warnings * src/common/memset.c: Make pointer arithmetic be on char *, not void * to silence warnings * include/diag.h, src/trace/diag.c: Make diag_init take void parameter, and give diag_printf explicit parameters in prototypes to silence warnings1998-08-19 Nick Garnett <nickg@cygnus.co.uk> * include/pkgconf/kernel.h: * src/common/thread.cxx: Added ifdef for CYGIMP_IDLE_THREAD_YIELD to support single priority configurations.Tue Aug 18 16:56:38 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/thread.hxx, include/thread.inl: To silence compiler warnings, move register_exception inline definition from the .hxx to the .inl. Also move attach_stack to before the constructor where it is invoked from.1998-08-18 Nick Garnett <nickg@cygnus.co.uk> * include/pkgconf/kernel.h: Moved all HAL specific config options out to a HAL config file. * include/kapi.h: * src/common/kapi.cxx: Added cyg_scheduler_lock() and cyg_scheduler_unlock() to provide user access to the scheduler lock.Mon Aug 17 21:39:20 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/kapi.h: Insert "void" to empty parameter lists to silence warningsFri Aug 14 18:10:20 1998 Hugo Tyson <hmt@masala.cygnus.co.uk> * src/common/thread.cxx (exit): Set the state explicitly to EXITED rather than or'ing it in; should be safe cos it's what kill does in the normal case. Needed to avoid suspend sort of states persisting after death. One character changes are always aesthetically pleasing.Fri Aug 14 17:28:01 1998 Hugo Tyson <hmt@cygnus.co.uk> * include/pkgconf/kernel.h: Add config options as below: * src/common/thread.cxx: Add asserts of CYGNUM_KERNEL_MAX_COUNTED_WAKE_COUNT_ASSERT and CYGNUM_KERNEL_MAX_SUSPEND_COUNT_ASSERT if they are defined. Also lazily tidied format of func hdrs as per code review et al.1998-08-14 Nick Garnett <nickg@cygnus.co.uk> * include/kapidata.h: Added support for thread names and thread housekeeping list. * src/common/delete.cxx: Added include for cyg_type.h. * include/pkgconf/kernel.h: Added CYGIMP_THREAD_NAME and CYGIMP_THREAD_LIST options. * include/thread.inl: * include/thread.hxx: Added support for thread names and thread housekeeping list. * src/common/thread.cxx: Added support for thread names and thread housekeeping list. Fixed ordering bug in Cyg_Thread::delay().Thu Aug 13 15:33:48 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/ktypes.h: Remove inlined new and delete as they aren't strictly permitted and they prevent a valid new and delete being defined anywhere else! * src/common/delete.cxx, src/PKGconf.mak: Add delete.cxx to provide default delete operation for when a C library isn't present1998-07-28 Nick Garnett <nickg@cygnus.co.uk> * include/thread.hxx, include/sched.hxx, include/mlqueue.hxx, include/lottery.hxx, include/bitmap.hxx, src/common/thread.cxx, src/sched/sched.cxx, src/sched/mlqueue.cxx, src/sched/lottery.cxx, src/sched/bitmap.cxx: Added an alternative constructor to Cyg_Thread which takes arguments in new order, and includes a scheduling parameters argument. Propagated effects of this through Cyg_SchedThread and Cyg_SchedThread_Implementation. This mostly takes the form of passing the scheduling parameters through to the constructors.1998-07-27 Nick Garnett <nickg@cygnus.co.uk> * src/sync/flag.cxx, src/sync/cnt_sem2.cxx, include/mempoolt.inl, include/mempolt2.inl, include/mboxt2.inl, include/mboxt.inl: Modified code in API calls that take a timeout to allow for a timeout in the past. NOTE: The timeouts have for now been left as relative delays, they should be converted to absolute timeouts. * src/common/thread.cxx: Modified code in counted_sleep to allow for
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -