file: readme.txt V1.00

This readme.txt file is associated with the PowerPC port of UCOS-II
kernel. The files in this port have been modified from the Barnet
Systems Engineering port of the PowerPc for the Diab compiler (also on Jean
Labrosse's website) . That's why
you will see BSE at a lot of the places as a port nomenclature. If
you find any problems with this port (I hope you don't because I fully tested it), 
please feel free to report them to me at "farooqi@uswest.net". Wish you good luck.

Usage of this port assumes an intermediate level or higher knowledge of
and familiarity with the 32-bit PowerPC programming environment.

Installation instructions:
1) Copy ppc8xx.zip to the directory /software/ucos-ii
2) Unzip preserving path information, e.g.'unzip -d ppc8xx.zip'

These distribution files include the essential files necessary to
implement the UCOS-II kernel on a PowerPC target.  The port has been
demonstrated to work on an MPC8xxFADS and an MBX860.  The code has
been tested on UCOS-II, V2.00, and UCOS-II, V2.03, with the Metroweks C/C++
Compiler Version 5.0, IDE Version 4.0.6, Build 0524.
This code is incompatible with UCOS, V1.xx. This code is also incompatible
with PowerPC devices which implement the floating-point model.

This distribution contains ONLY the PowerPC port code.  It is
expected that the user will have acquired the code for the UCOS-II
kernel and the associated manual from Jean J. Labrosse, Weston, FL
Jean.Labrosse@uCOS-II.com . See http://www.ucos-ii.com for details.

The User must build the project in the CodeWarrior IDE window by merely
using the default PowerPC EABI Stationery. Once the project is created, drag the
following files from the explorer into the project.
PORT FILES-->bseppca.s, bseppcc.c, bsetest.c, ctxswhandler.s, decintrhandler.s,
             includes.h, bseppc.h, mpc860t.h, netcomm.h, ucos_ii.h
CODE FILES-->os_core.c, os_mbox.c, os_mem.c, os_q.c, os_sem.c, os_task.c, os_time.c,
             ucos_ii.c
Compile and link all the files above and then use the default BDM file that has 
default setting for some startup registers for the MPC860FADS board that comes
with the compiler and run the debugger. When the debugger is run you should see the
ethernet led (LD1) on the FADS board turn on and off, simulating the OS is running.
Please note that the "main.cpp" and the "interrupt.c" file that are generated by default
are not needed so disable these files. "bsetest.c" is the main file, you can also cut
and paste the code in bsetest.c into "main.cpp" if you so wish and then not have "bsetest.c"
One final thing, make sure that in the EPPC Linker in the Debug Version Settings that
Stack address is 0x003dfff0 and Code Address is 0x00010000; in the EPPC Target, Heap
Size is 128K and Stack Size 64K. These all should be the default values, but just make sure.

This implementation uses the PowerPC Decrementer Exception for the
timer tick operation, and uses the PowerPC System Call Exception
for the Context Switch operation.  They are located at vector offsets
0x???00900 and 0x???00C00 respectively, where ??? is "000" or "FFF"
depending on the state of the MSR[IP] field.  The code as written
assumes that MSR[IP] == 0b, and thus ??? == 000. This is the default 
with CodeWarrior.

Files:

bsetest.c:
Provides some trivial demonstration code to show that the OS is
running and multi-tasking.

bseppcc.c:
Contains the PowerPC specific C language code for UCOS-II

bseppca.s:
Contains the PowerPC specific Assembly language code for UCOS-II

ctxswhandler.s:
Contains the context switch code that is installed at 0x???00C00

decintrhandler.s:
Contains the decrementer interrupt code that is installed at 0x???00900

include.h
This file references by inclusion two files: ucos_ii.h, and bseppc.h

ucos_ii.h:
This file is unmodified from the UCOS-II distribution code.  See the
UCOS-II distribution for this file.

bseppc.h:
This file contains PowerPC specific code and UCOS-II kernel configuration
#define's and typedef's.

mpc860t.h:
Contains the register map of the MPC860t.

netcomm.h:
Contains TYPEDEFs and DEFINEs.


Author: Harry E. Barnett
Barnett Systems Engineering
harryb@hbbse.com http://www.hbbse.com

Modified By: Mohammad Farooqi for the MetroWerks CodeWarrior Suite

