On Dec 27, 2007 7:31 AM, Jonathan Chayce Dickinson
<[EMAIL PROTECTED]> wrote:
> Can you get the disk driver working? I wan't to try plug ext2 into the
> kernel.

Well that's the plan obviously ;)
I'm currently implementing a floppy controller driver, once that's
done we can start implementing all kinds of file formats.

We also need to think about kernel structure IMHO.
Right now everything is almost a collection of random files with
random features..
It would really help if support for features like allocation and
deallocation of objects + interfaces would be finished
(delegates/events would be soo usefull as well)

I was thinking, it might be usefull to have a tool which would take a
c# file which defines a driver and generate initialization code for
the driver automatically.

basically we would have something like:

class TextModeDriver
{
[FixedPort(IO.Port.CGA_CRT_data_register)]
public byte DataRegister { get { return 0; } }

[FixedPort(IO.Port.CGA_CRT_index_register)]
public byte IndexRegister { set { } }

[FixedMemory(Base= 0xB0000, Length = 0x08000)]
public byte[] VdeoMemory;
}

And the tool would automatically generate the initialisation code and
implement the properties...
At first the tool would simply change the FixedPort properties to use
IO.In8 and IO.Out8, but eventually it would hook up to a resource
manager which checks if the ports are available etc.

The fixed memory is the most interesting part imho, because if we make
it possible to create an array at a specific place in memory, then we
can let drivers work in that memory without using unsafe code..
We could do bounds checks etc. to keep it safe and throw an exception
to the OS if a driver does something stupid (and then the OS can reset
the driver or try another one etc.)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to