Creating a new branch to hold all the changes related to implementing newlib
New files for newlib
Still playing with newlib
Further conversion of tasks for newlib

Now written sh, a new version of task1
sh.c added
More System Call Changes

Various additions to support newlib. rcx, r9, and r11 are saved during system calls.
Renamed Newtasks to Tasks

The directory tasks has been replaced by the former newtasks. I'm keeping "library" for the time being as it's used by the kernel.
Moved Newtasks to Tasks

Hopefuly, got it right this time.
Miscellaneous Changes

Changed the memory map. Cleaned up a few files. Started to introduce proper errorcodes from system calls.
argc, argv Bug Fixed

A bug with the handling of arguments has been corrected. The memory map has been changed to give program code and data more space. sbrk now correctly sets the start of free memory.
AllocMem Bug Fixed

A subtle bug in AllocMem() has been fixed, where if there was just enough memory available at the end of the lsit the link was not updated. Other files reformatted.
Minor Changes
Bug Fixes

Bugs in sbrk() and read() system calls corrected.
Implemented sys_ftruncate System Call

And cleaned up other code a little, including returning proper error dodes from filesystem calls.
Fixed System Calls getcwd() and close()

getcwd() wasn't allocating memory properly. Now it is passed a buffer.
close() was not handling the keyboard and console properly.
open() System Call Opens Lowest Available file descriptor

The open() system call was not selecting the correct file descriptor. Now it will use the lowest available one. This is implemented via a bitmap, which limits the number of file descriptors for a process to 64.
Fixed Bugs in read() and write() System Calls

read() was not returning the number of bytes read. write() was not flushing the sectors to disk correctly.
Bugs Fixed in seek() System Call

Multiple problems with seek() have been corrected.

A very simple rm command is added.
Improvements to filesystem.c

A couple of minor bugs are fixed. A new member (currentSector) is added to the FCB struct to make the code cleaner.
Removed Two Fields from Task Struct

Two fields in the struct Task were unused - nexttask and nextpage. These are now removed.