Picon

Implementing plugs.

Hello,

this is my first time asking for help,

I want to try and implement a plug, more specifically data types like Dictionary<Tkey, Tvalue>.

Im not sure if this would be a plug? and any tips on creating plugs ?

 



__._,_.___
Posted by: myvarhd-/E1597aS9LQAvxtiuMwx3w@public.gmane.org


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

IL Interpreter issue

With the help of Matthijs the interpreter issue has been identified. 

The following code makes the problem happen:
this.mATA = BlockDevice.Devices[0] as AtaPio;

I initially thought the implementation of the Isinst OpCode had a bug in it, but that code looked correct. That means the cause had to be in the IL interpreter.

In OpType.cs there 
case Code.Isinst: StackPopTypes[0] = typeof(object); StackPushTypes[0] = typeof(bool);

The StackPushTypes[0] should be the specific object type that will be checked instead of bool.


__._,_.___
Posted by: Charles Betros <charles.betros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Compiler Bug (?)

While testing the FAT implementation I ran across a compiler error using the "as" operator. The offending line of code was:

for (int i = 0; i < BlockDevice.Devices.Count; i++) { if (BlockDevice.Devices[i] is AtaPio) { AtaPio xATA = BlockDevice.Devices[i] as AtaPio; <- Works this.mATA = BlockDevice.Devices[i] as AtaPio; <- Compiler Error break; } }
The error is "Wrong poptype encountered."



__._,_.___
Posted by: Charles Betros <charles.betros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Int64[], UInt64[], and More!

I think I have finally fixed the issue with 64bit integer arrays. I found out that the high and low 32bits were backwards. Here's some so everyone can check me.

(From the disassembly of a C# console app)
xArray642[0] = 0x2020202002020202; mov dword ptr [eax+8],2020202h mov dword ptr [eax+0Ch],20202020h UInt64 x8 = xArray642[0]; mov edx,dword ptr [eax+0Ch] mov eax,dword ptr [eax+8] mov dword ptr [ebp-48h],eax mov dword ptr [ebp-44h],edx


(Cosmos generated assembly)
SystemVoidSentinelKernelKernelRun.IL_001F: ; Ldc_I8 push dword 0x20202020 push dword 0x2020202 SystemVoidSentinelKernelKernelRun.IL_0028: ; Stelem_I8 mov dword EBX, [ESP + 8] mov dword ECX, [ESP + 12] add dword ECX, 0x10 push dword 0x8 push dword EBX pop dword EAX mul dword [ESP] add dword ESP, 0x4 push dword EAX push dword ECX pop dword EAX add dword [ESP], EAX pop dword ECX ; Start 1 dword pop dword EBX mov dword [ECX], EBX add dword ECX, 0x4 ; Start 1 dword pop dword EBX mov dword [ECX], EBX add dword ECX, 0x4 add dword ESP, 0x8 SystemVoidSentinelKernelKernelRun.IL_002B: ; Ldelem_I8 pop dword EAX mov dword EDX, 0x8 mul dword EDX add dword EAX, 0x10 pop dword EDX add dword EDX, EAX push dword [EDX + 4] push dword [EDX] SystemVoidSentinelKernelKernelRun.IL_002C: ; Stloc ; EBPOffset = 16 pop dword EAX mov dword [EBP - 20], EAX pop dword EAX mov dword [EBP - 16], EAX

(The offending lines are in Ldelem_I8)
OLD: mov edx,dword ptr [eax+0Ch] = push dword [EDX] mov eax,dword ptr [eax+8] = push dword [EDX + 4] mov dword ptr [ebp-48h],eax = mov dword [EBP - 20], EAX mov dword ptr [ebp-44h],edx = mov dword [EBP - 16], EAX NEW: mov edx,dword ptr [eax+0Ch] = push dword [EDX + 4] mov eax,dword ptr [eax+8] = push dword [EDX] mov dword ptr [ebp-48h],eax = mov dword [EBP - 20], EAX mov dword ptr [ebp-44h],edx = mov dword [EBP - 16], EAX

And now... FAT/ATA




__._,_.___
Posted by: Charles Betros <charles.betros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

FAT Implementation

So after more digging I have to say I was wrong. The FAT implementation looks good. The compiler is the
culprit for all the pain and suffering. The parameter value I pass in to a method in certain cases does not
come off the stack with the correct value.

------------------------------------
Posted by: Charles Betros <charles.betros@...>
------------------------------------

--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Cosmos-Dev/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Cosmos-Dev/join
    (Yahoo! ID required)

<*> To change settings via email:
    Cosmos-Dev-digest@... 
    Cosmos-Dev-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    Cosmos-Dev-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

FAT implentation

I think I've narrowed down the issue in the FAT implementation. The compiler looks like it is working properly. I have more testing to do, but I think the issue is in the FatStream and FatFileSystem classes.


__._,_.___
Posted by: Charles Betros <charles.betros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Cosmos Debugger work

I just checked in a changeset which adds some functionality to the debugger. Fields (primitive types only for now) can be inspected in the locals and watches window. They are currently read-only. 






__._,_.___
Posted by: Charles Betros <charles.betros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Build Error

Hello,

I'm creating a new "C# Operating System" project and try build but some errors occur. Obviously I can not guess the cause of failure. Why do you think I am getting this error?


My system: 

Cosmos UserKIT108477

VS 2013 UPDATE 3 Ultimate

Windows 8.1 x64 OS

SQL 2012 x64

VMware player



Thanks



__._,_.___
Posted by: selcuk.gural-/E1597aS9LQAvxtiuMwx3w@public.gmane.org


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Cosmos GUI

Where did Wikipedia get this image, who made this build ? http://upload.wikimedia.org/wikipedia/commons/2/2e/COSMOS_Shell_Screenshot.png
It's part of the article http://en.wikipedia.org/wiki/Cosmos_(operating_system).


 

 



__._,_.___
Posted by: dewaldhuman-DaQTI0RpDDMAvxtiuMwx3w@public.gmane.org


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Stack Corruption bug and Compiler changes

As you all might know, our current FAT implementation is hitting a stack corruption bug. Fixing this bug led us to discover a large design flaw in our current compiler. I'm working on fixing that. THe first part of the changes are now enabled in current devkit. This means however that you may potentially run into exception when building. When you encounter any, please let me know...



__._,_.___
Posted by: Matthijs ter Woord <matthijsterwoord-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------






__,_._,___
Picon

Source Tree Changes

We are cleaning the source tree.

Several changes will be noted, but one is that User projects have been 
removed from the main SLN. They will be moved to a user dir. If you are 
an active user, please add them back to the SLN later today until we get 
a SLN generation tool.

------------------------------------
Posted by: "Chad Z. Hower aka Kudzu" <Chad@...>
------------------------------------

--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Cosmos-Dev/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Cosmos-Dev/join
    (Yahoo! ID required)

<*> To change settings via email:
    Cosmos-Dev-digest@... 
    Cosmos-Dev-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    Cosmos-Dev-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/


Gmane