=============================================================================
=                    XMK SCHEDULER CHANGE LOG                               =
=============================================================================

Version 0.1.1 (October 3, 2004)
-------------------------------
    - Ported to Renesas's M16C architecture (with NC30WA compiler).

    - Ported to the 68K/CPU32 architecture (with GCC).  This port is still 
      in the experimental stage.

    - Bug Fixes:
      o Rename C/ASM source files for globally unique names.  Needed to 
        support IDEs/build environments that can *not* handle duplicate
        file names even though the files are in different directories.


Version 0.1.0 (March 26, 2004)
---------------------------------
    - Formally updated project status to 'beta'

    - Formally renamed the original XMK source tree to be the "XMK Scheduler".

    - Re-factoring of the kernel internals.  The following areas where
      effected: 
      o Redo _Xmk_enableSwitchingWithIrqsDisabled() to be 'smarter'.
      o Tweak the AVR PAL layer to deal with the fact that interrupts
        are always enabled on return-from-interrupts (instead of
        being done up in the kernel itself).
 
    - Bug Fixes:
      o Updated PAL_arIntsEnabled() for the H8s/hew2/icmode2 to be more
        generic.
      o Updated the test/example applications to allocate stack memory via
        16bit integer arrays to ensure proper alignment when using processors
        such as the H8.
      o Fix XMK_TOP_STACK macro to properly handle memory pointers that
        are not of the byte/char type.
      o Fixed memory corruption bug in semaphore-wait-with-timeout logic
        when a timeout occurred with only 1 thread waiting on the semaphore.
      o Fixed PAL__areIntsEnabled() method for the Atmel/AVR/gcc port.  The
        compiler was over-optimizing the inlined assembler.
      o Updated PAL__areIntsEnabled() methods to ensure proper C operator
        precedence.


Version 0.0.11 (January 10, 2004)
---------------------------------
    - Added a new method kernel method: Xmk_areInterruptsEnabled().

    - Cleaned up the Xmk_isr_lock/Unlock_data() methods to prevent possible
      corruption of a given compiler's ABI.  This also effected and 
      simplified the PAL layer for porting to new platforms.

    - Bug Fixes:
      o Fixed Xmk_isr_lock/unlock_data() methods on the H8s platforms so as 
        to not corrupt the compiler's ABI.  Note: This bug fix is only 
        neccesary if your application enabled the 'nested-interrupts' switch.

       
Version 0.0.10 (December 18, 2003)
----------------------------------
    - Moved the XMK Blocking-UART drivers and interfaces into the APLMT
      library. It was decided that XMK is strickly a 'scheduler'.  Non 
      "core" kernel/RTOS features are/will-be included in the APL/APLMT 
      libraries.

    - Bug fixes:
      o The Priority scheduler would wrongfully queue a not-ready thread in 
        the ready list. The error occured while in the Xmk_findNext() method 
        and an interrupt wakes-up a thread with a higher priority than the 
        thread that called Xmk_findNext().
      o The implementation of Xmk_su_isr_signalSync() did not match the
        intended/described semantics with respect to nested interrupts.


Version 0.0.9 (December 6, 2003)
---------------------------------
    - Enhanced thread-semaphore and counting semaphore interfaces to support
      timeout options.

    - Moved the XMK "File Descriptor" interfaces into the APLMT library.

    - Added Xmk_isKernelRunning() method.

    - Bug fixes:
      o Added missing _Xmk_su_getThreadState() method (oops!)
      o Fix low-level uart driver transmitBuffer() to proper handle a 
        request to transmit zero bytes.
      o Tweak fd-uart write routines to be be more efficient with respect
        to ROM footprint.
      o Fix H8/3664 and H8/38024 low-level uart ISR routines to allow Tx
        only, Rx only, and/or Tx/Rx.


Version 0.0.8 (October 12, 2003)
---------------------------------
    - Added a companion package: yet Another Platform independent Library
      (APL).  The APL package provides services such as inter-thread 
      communications, memory pools, etc. while emphasizing a "minimalist"
      design criteria as to the service's RAM/ROM footprint.

    - Added a second sleep API implementation.  This new implementation is
      "smarter" in that it only processes the sleeping threads and at most
      only decrements one sleep counter per sleep tick interrupt.

    - Added a 'file descriptor' abstraction layer/interface for common
      usage of the various IO drivers.  Currently only serial port/UART
      devices are supported.

    - Bug fixes:
      o Fixed stack calculations to account for the Xmk_getNext() method
        being called "on" the individual threads' stacks (and not the
        system/isr stack).
      o Updated low-level UART drivers to release blocked threads (that
        are waiting on driver IO) when stopping the drivers.


Version 0.0.7 (August 17 2003)
---------------------------------
    - Changed the interrupt paradigm to have a dedicated stack just for 
      interrupt processing.  This approach reduces the overall RAM 
      requirements since the stack burden for ISR processing is
      no longer multipled by the number of application threads.
 
    - Added blocking UART-A driver for the edosk2674 board.

    - Ported to H8S/GCC: H8S/2678 (edosk2674 eval board)

    - Ported to H8S/HEW2: H8S/2678 (edosk2674 eval board)
    
    - Updated the Priority Scheduler to be an O(1) scheduler (i.e. scheduling
      the 'next' thread is NOT a function of the total number of threads).

    - Renamed the "blocking-io" wait/signal calls to be generic since their
      functionality is independent of supporting blocking IO.
                                        
    - Tweaked the Extended-Thread Services' get-info methods.

    - Started a list of "undocumented API" calls. See xmk/docs
      directory (can you have documented undocumented interfaces?).

    - Bug fixes:
      o Priority Scheduler: Fix bug in the enableSwitching() method
        to properly queue the current thread when scheduling is dirty.
      o Priority Scheduler: Fix race conditions (2) when the current thread
        is yeilding the CPU and is 'signaled' from an ISR during the 
        findNext() processing.
      o Enable/Disable Scheduling: Fix logic that keeps track of the 
        highest priority context switch request (when there is multiple
        requests) when scheduling is disabled.
      o Fix TXD pin bug in the UART platform code for the edk3664 and
        edk38024 boards.


Version 0.0.6 (June 01, 2003)
---------------------------------
    - Added a new sub-system, "XMK drivers".  The driver sub-system and
      interfaces provide direct support for hardware devices and/or
      peripherals that REQUIRE coordination with the kernel.  The driver 
      sub-system is an optional extension to the XMK kernel (i.e. the kernel
      is NOT dependent and/or does NOT requires the driver sub-system).  
      Currently the only driver support is for stream based blocking IO for 
      UART(s).

    - Ported Shift-Right's Open Repository C++ Jcl::mt threading and ITC
      interfaces/wrappers to XMK.  See www.shift-right.com/repository.htm
      for details about the Open Repository.  NOTE: Unless you have alot
      of RAM (>4K) using the C++ Jcl threading & ITC wrapper is just not
      practical.  The motivation of the port was to see if it could be done.
      NOTE: The source is contained in the Open Repository project and
            will need to be downloaded seperately.

    - Make header files compatible with C++ (bounded all header files with
      extern "C" statements).

    - Added new interface(s):
      o Internal kernel interface to support 'blocking IO'
      o Mutexes (actually just the interface which is then implemented as
        aliases to the Semaphore API).
      o Counting Semaphores.
      o Thread-Specific-Data (TSD).

    - Change the thread's entry function to take a data pointer as a 
      function argument.

    - Modified build environment for the Atmel/AVR projects to require a 
      rawobjects.b file. This allows the vector table to be 'built' in the 
      source tree and not just the project directory.

    - Bug fixes:
      o Fix missing macros.inc file problem with the Atmel/AVR port.
      o Fix start kernel/findNext bug when using the Priority Scheduler.
      o Fix createNewThreadHdl() bug when kernel is configured for static
        threads using the Priority Scheduler.
      o Fix kernel data being corrupted in ISR when nesting IRQs.
      o Fix Priority Scheduler bug where the lowest priority thread did
        not always wake-up from sleep().


Version 0.0.5 (May 13, 2003)
---------------------------------
    - Added alternate scheduler.  New scheduler allows multiple threads 
      with the same priority.

    - Updated sch_eidi API to minimize the amount of the time interrupts are
      disabled.

    - Clean-up of xmkcfg.h files, switches, and constants    

    - Bug fixes:
      o Fix stack frame bug in the Atmel port.
      o Fix last thread never wakes up bug. 
      o Fix dynamic threads bug where state of new thread was ignored
        when checking for the-next-thread-to-run.
      o Fix Initial State bug - only the 'READY' state worked correctly.


Version 0.0.4 (March 21, 2003)
---------------------------------
    - Added new interface:
        dyanmic threads

    - Ported to Atmel/GCC: AT90S8515 and ATmega128


Version 0.0.3 (March 4, 2003)
---------------------------------
    - Added new interface:
        enable/disable scheduling

    - Restructured/renamed the scheduler/core code to allow for different 
      scheduling algorithms in the future.

    - Ported XMK to the GCC/AVR Toolchain

    - Current CPU Platforms Supported:
        Atmel
            GCC
                AVR
        Hitachi
            GCC 
                H8/300,H8300L,H8300HN
            HEW2
                H8/300HN
                H8/300L

    - Current Targets with example projects
        Atmel
            GCC/Linux
                STK300 (ATmega103)
        Hitachi
            GCC/Linux 
                EDK3664
                EDK38024
            HEW2/Windoze
                EDK3664
                EDK38024


Version 0.0.2 (February 18, 2003)
---------------------------------
    - Fixed bugs in the ported gcc/h8 crt0.s startup code

    - Added new interfaces:
        system timer
        thread sleep

    - Cleaned-up kernel config and/or xmkcfg.h
 
    - Combined web-page and documentation into one 'package' (will see
      how well this works out).


Version 0.0.1a (February 15, 2003)
---------------------------------
    - Ported XMK to the GCC/H8 toolchain

    - CPU Platforms Supported:
        Hitachi
            GCC 
                H8/300,H8300L,H8300HN
            HEW2
                H8/300HN
                H8/300L

    - Targets with example projects
        Hitachi
            GCC/Linux 
                EDK3664
                EDK38024
            HEW2/Windoze
                EDK3664
                EDK38024


Version 0.0.1 (February 11, 2003)
---------------------------------
    - Initial version.  Basic scheduler only.  

    - CPU Platforms Supported:
        Hitachi
            HEW2 Toolchain
                H8/300HN
                H8/300L

    - Targets with example projects
        Hitachi
            HEW2 Toolchain
                EDK3664
                EDK38024
