Page 1 of 2

Dreckig OS

Posted: Sat Feb 04, 2012 4:59 pm
by GAT
If anyone is interested here is my project:
http://code.google.com/p/dreckig-os/
wind582.GIF
wind582.GIF (5.96 KiB) Viewed 6996 times
Dreckig uses a megalithic kernel, so everything is run in kernel mode for increased speed and security.

Re: Dreckig OS

Posted: Sat Feb 04, 2012 5:50 pm
by JackScott
Running everything in kernel mode for speed I can believe, but would you mind explaining the rationale behind it being more secure? It's just the opposite of what is usually the case (user mode being more secure and fault-tolerant).

Re: Dreckig OS

Posted: Sat Feb 04, 2012 6:11 pm
by GAT
I mean secure as in from viruses, as you can not install software. It also gives me more control over the quality of software for my OS, since you can't use outside software.

Re: Dreckig OS

Posted: Sat Mar 17, 2012 9:59 am
by Unkn0wn1
Is it in real or protected mode - I see it uses int 10h, so I suspect real, but just want to know out of curiosity
--Saw it was real mode in the tags - by the way, I have a solution to your backspace problem
add on line 402 - after enter check:

Code: Select all

cmp al, 0x08
je .backspace
And after loop, put this in

Code: Select all

.backspace:
   cmp cl, 0	; beginning of string?
   je .loop	; yes, ignore the key
 
   dec di
   mov byte [di], 0	; delete character
 
   mov ah, 0x0E
   mov al, 0x08
   int 10h		; backspace on the screen
 
   mov al, ' '
   int 10h		; blank character out
 
   mov al, 0x08
   int 10h		; backspace again
 
   jmp .loop	; go to the main loop
 
--Ben

Re: Dreckig OS

Posted: Sat Mar 17, 2012 1:12 pm
by VolTeK
Unkn0wn1 wrote:Is it in real or protected mode - I see it uses int 10h, so I suspect real,


You can also read his project page in the link provided in his signature.

Re: Dreckig OS

Posted: Sat Mar 17, 2012 1:38 pm
by Unkn0wn1
I kinda did, as the second line says - I was referring to the tags on it

Re: Dreckig OS

Posted: Sat Mar 17, 2012 3:01 pm
by VolTeK
Unkn0wn1 wrote: by the way, I have a solution to your backspace problem
add on line 402 - after enter check:
And so does the wiki.
http://wiki.osdev.org/Real_mode_assembly_I :roll:

Your not making your entire Operating system with code from the wiki are you?

It is free to the public but, for learning purposes ;)

Re: Dreckig OS

Posted: Sat Mar 17, 2012 3:08 pm
by Unkn0wn1
No, I'm not - FS code, raw binary execution, syscalls, cli, libraries (screen, math,string, kb etc. (hopefully basic crypto to come)) time/date with formatting

Need I say more?

Re: Dreckig OS

Posted: Sat Mar 17, 2012 3:46 pm
by GAT
Sweet!
It works!
Thanks, Unkn0wn1.
Do you want your name or screen name on the splash?

Re: Dreckig OS

Posted: Sat Mar 17, 2012 3:58 pm
by Unkn0wn1
My name, thanks

--Ben Jackson

Oh, and it works here, as well. Just tested it in Bochs. Only got round to it now as I've been working on something for FIND

Re: Dreckig OS

Posted: Sun Apr 01, 2012 9:16 am
by quanganht
GAT wrote:Dreckig uses a megalithic kernel, so everything is run in kernel mode for increased speed and security.
Megalithic?!

Re: Dreckig OS

Posted: Sun Apr 01, 2012 10:09 am
by VolTeK
Unkn0wn1 wrote:No, I'm not - FS code, raw binary execution, syscalls, cli, libraries (screen, math,string, kb etc. (hopefully basic crypto to come)) time/date with formatting

Need I say more?
Yes, as you barely listed anything. If all you say is done, i can give you credit as i believe you have started not to long ago.


But if your just listing, the "doing" won't be as easy as said If Done Right

Re: Dreckig OS

Posted: Sun Apr 01, 2012 1:15 pm
by GAT
quanganht wrote:
GAT wrote:Dreckig uses a megalithic kernel, so everything is run in kernel mode for increased speed and security.
Megalithic?!

Yes, a Megalithic Kernel. The idea is to use simplicity to increase speed.

Re: Dreckig OS

Posted: Wed Apr 04, 2012 6:22 am
by ACcurrent
You said "increase speed" and "increase security". Now, it seems beyond me how you can do such a thing in a megalithic kernel. If you were to use an in-kernel interpreter the performance would be slower and if you were not using one you would risk security breeches as there is no memory protection in kernel mode so how is it you are increasing both?

Re: Dreckig OS

Posted: Wed Apr 04, 2012 12:17 pm
by bluemoon
Increase is a relative word. I guess he is comparing to his previous version?
Think about this, Windows 7 has increased performance (compares to Windows XP). Yet it is still bloated.