Notes and Caveats for the M16C port of XMK
=============================================================================

Near vs. Far RAM
----------------
    The default port supports only near RAM, i.e. all pointers are 16bit. When
    using Far (external) RAM, additional steps are required.
    1) Enable compiler switch(es) so that the default pointer type is for 
       32bit pointers.
    2) Set the compiler switch USE_XMK_M16C_32BIT_POINTERS in xmkcfg.h
    3) Build and link the additional directory:
            src\xmk\platform\renesas\m16c\kernel\<compiler>\farptrs
    4) When using dynamic threads do *not* build and link the directory
            src\xmk\platform\renesas\m16c\xthread


Near vs. Far ROM
----------------
    The use of near/far ROM is a don't care to XMK.


Stack Memory
------------
    The M16C architecture requires that all stack memory be in near RAM.  It
    is the responsiblity of the system/application to ensure that all memory
    supplied for the XMK thread stacks are in near memory.


User vs. Interrupt Stack pointer
--------------------------------
    The hardware dual stack pointers are not used - the default XMK
    software interrupt stack pointer logic is used.  This is done to 
    simplify interaction with the ICD debugger/monitor - which uses
    one of the HW stack pointers (U) for its exclusive use.


Multiple Register Banks
-----------------------
    XMK makes use of the second register bank during interrupt processing.
    On entering a interrupt service routine, the XMK interrupt hooks 
    switches to the second register bank.  Only if a context is required
    are the thread's registers saved/pushed onto the stack.


Static Based (SB) Register
--------------------------
    XMK completely ignores the SB register - i.e. it is not consider part
    of a thread's register set and is *not* saved/restore during a context
    switch.


Power Saving mode during idle time
----------------------------------
    The default implemenation for XMK's idle thread is to put the CPU into
    wait/sleep/power-saving mode (all perhiperals are still operating and
    an interrupt will wake up the CPU).  However, wait mode is not directly
    compatible when using the onboard PLL to increase hardware system clock.
    If the PLL is being use, define USE_XMK_FULLSPEED_IDLE_MODE in xmkcfg.h
    to bypass the wait/power-savings logic when the idle thread is running.
