Kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Kernel

Post by bubach »

The kernel is the code in memory that other programs call for "help" with things it can't or don't want to do itself. Thats independant of protection etc.. Of course DOS has a kernel, you can't call all non-protected or non-32bit OS:es for non-kernel... Right?

EDIT:
That would fit in nicely with the "DOS has no kernel" observation above - DOS doesn't do any multiplexing, the running program controlls all of the system until it exits and reloads command.com.
I understand the point, but without DOS, the program is left only with BIOS functions, so at the very least int 0x21 could be called DOS kernel?
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Kernel

Post by Solar »

bubach wrote: Of course DOS has a kernel, you can't call all non-protected or non-32bit OS:es for non-kernel... Right?
The thing is that command.com is completely replaced in memory when another exe is started, and reloaded when the exe exits. I am not a DOS wizz, but I'd say that smells like "no kernel present, please leave this system as you would like to find it".
I understand the point, but without DOS, the program is left only with BIOS functions, so at the very least int 0x21 could be called DOS kernel?
The BIOS isn't "kernel", it's "Basic Input / Output System". ;)
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Kernel

Post by Pype.Clicker »

Afaik, noone ever talked about a "kernel" in DOS back in DOS days. There were drivers, command line interpreter, system tools and TSRs, yes. But no kernel wherever.

Imvho, if you have not at least multiple address space or protection rings, the notion of a "kernel" becomes very hard to apply... if dos 'INT 21' is a kernel, then why BIOS isn't ? see my point ?
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Kernel

Post by bubach »

yeah, yeah.. whatever.. >:(
then my os doesn't have a kernel, and will never have. :'(
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
aladdin

Re:Kernel

Post by aladdin »

DOS is an operating system but not a kernel :o

yes, because it offer tools to manage tou system, do some editing or programming and lauches other programes

we can say the it is a standalone shell that offer some services (int 21 stuff) ;)

why we can't say that it is a kernel : coz it doesn't manage memory/cpu/process/... resources, everything is done by the chipsets or by the BIOS.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Kernel

Post by bubach »

ehh, it _does_ "manage" memory, it has functions to allocate/deallocate mem. as for cpu/process resources, why should it have that when it's desinged to be single tasking?
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
aladdin

Re:Kernel

Post by aladdin »

bubach wrote: ehh, it _does_ "manage" memory, it has functions to allocate/deallocate mem. as for cpu/process resources, why should it have that when it's desinged to be single tasking?
erm ... i thought it was using BIOS stuff to do that (I mean, there is no sp?cific structures to manages processes or resources .... I think) ::)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Kernel

Post by Pype.Clicker »

DOS had its own (undocumented) Memory Control Block and Program Segment Prefix (or whatever) to keep track of what's available and what's running.
Post Reply