IOSe 0.4.4 general release notes
------------------------------
The document IOPOS_Emulator.doc contains information about:
      - Hardware requirements
      - Installing the IOP OS emulator
      - Building and running sample programs
 
This document describes the changes relative to IOSe version 0.4.3.
-----------------------------------------------------------------
0) Installation:
   There are two tarballs:
   iose0.4.4-installer.tar.gz - contains the updated IOP OS emulator and
                              source and binary RPMs for the modified
                              kernel.
   iose0.4.4-installer-nopkgs.tar.gz - contains the updated IOP OS emulator.

   Please note that there are no changes in the kernel and related RPMs
   in 0.4.4. If you have an installation of 0.4.2, you can upgrade to 0.4.4
   using iose0.4.4-installer-nopkgs.tar.gz. You do not need to re-install
   the kernel and related RPMs.

1) Fixes included in this release:
     - Resource manager internal function CHECK_FD() bug fixed.
     - resource.c iosClose() fix for file handle cleanup.
     - Add iobuf reference count management scheme, including
       IOS_IOB_INCREF() macro.
     - Add iobuf data storage management functions, including:
           IOS_IOB_RESERVE()
           IOS_PutIob()
           IOS_PushIob()
           IOS_PullIob()
     - Add iobuf clone function IOS_CloneIob(), and the feature of 
       data buffer sharing among multiple iobufs.
     - Add iobuf verification function IOS_IsValidIob().

2) Added support for asynchronous Resource Manager api's: IOS_OpenAsync(), 
   IO_CloseAsync(), IOS_ReadAsync(), IOS_WriteAsync(), IOS_SeekAsync(), 
   IOS_IoctlAsync(), IOS_IoctlvAsync().

3) Added IPC support (server, client, HW/IPC emulation), test applications 
   and a corresponding test resource manager.

   The client test for asynchronous RM api's is ipcapp.so and is started by 
   running it from within iose/iossh (>r ipcapp).
   The client test for synchronous RM api's is ipcappsync.so and is started in
   the same way by running it from within iose/iossh (>r ipcappsync).
   Both tests start the corresponding Resource Manager thread.

4) Added the DI driver code which uses the IPC software.  The DI software can
   be run using the instructions found in the README file in the iose/os/di
   directory.

5) API changes to sync with IOP OS:
  a)
   IOS_SetTimer(), IOS_SetPeriodicTimer() have been replaced with:

   IOSTimerId IOS_CreateTimer(IOSTime value, IOSTime interval, 
                              IOSMessageQueueId mq, IOSMessage msg);
    
   Example: 
   To set a one-shot timer for 500ms, do:
     IOS_CreateTimer(500, 0, mq, msg);
   To set a periodic timer for 500ms do:
     IOS_CreateTimer(0, 500, mq, msg);
   
  b) IOS_StopTimer has been renamed to:
     IOSError  IOS_DestroyTimer(IOSTimerId id);

  c) New function:
      u32  IOS_GetTimer(void);
     Returns contents of system timer count register, which is a 32-bit 
     register, which increments once every 128 clock cycles. The emulator 
     returns time in microseconds.
   
  d) Changes in thread creation API:
     IOP OS now supports the join functionality for threads (similar to
     pthread_join). So while creating a thread, you need to specify whether
     it is created in a detached state or whether threads can do a join on it.
     
     The emulator does not support the join functionality, yet. But the thread
     creation API has been updated to sync it with IOP OS.
     
     Modified API:
     IOSThreadId  IOS_CreateThread(IOSEntryProc entry, void *arg,
      void *stack, u32 stackSize, u32 priority, u32 attributes);
     - attributes is one of:
        IOS_THREAD_CREATE_DETACHED
        IOS_THREAD_CREATE_JOINABLE

     - IOSError  IOS_JoinThread(IOSThreadId id, void **val);
       val will fetch the return value of the thread(id) when it exits.
       
     - IOSError  IOS_DestroyThread(IOSThreadId id, void *val);
       val is the exit value of the destroyed thread.
 
    Example:
    u32 val;
    int rv;
    id = IOS_CreateThread((IOSEntryProc)thread_func, (void*)1, stack+STACK_SIZE, STACK_SIZE, 10, IOS_THREAD_CREATE_JOINABLE);
    rv = IOS_StartThread(id);
    rv = IOS_JoinThread(id, (void **)&val);
    printf("After IOS_JoinThread: %d, val = %u\n\n", rv, val)

    In thread_func() [or some other thread destroying this thread]:
      IOS_DestroyThread(id, (void *)666);

   e) Note: 
    Type IOSCid is an alias for IOSFd. They are both s32 values. 
   
---------------------------------------------------------------------------
    Copyright (C) 2006, BroadOn Communications Corp.
