Weevil (planned)

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Weevil (planned)

Post by iansjack »

omarrx024 wrote:
iansjack wrote:Rather than all the kludging with 16-bit and/or Virtual 8086 mode, why not just write a proper disk driver?
Because he wants a DOS-like OS, which probably means it would be 16-bit.
In that case talk of switching between 32-bit and 16-bit, and Virtual 8086 mode, is irrelevant isn't it?
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Weevil (planned)

Post by BrightLight »

iansjack wrote:
omarrx024 wrote:
iansjack wrote:Rather than all the kludging with 16-bit and/or Virtual 8086 mode, why not just write a proper disk driver?
Because he wants a DOS-like OS, which probably means it would be 16-bit.
In that case talk of switching between 32-bit and 16-bit, and Virtual 8086 mode, is irrelevant isn't it?
Yes, but a 32-bit DOS would be pretty cool in my opinion. It's also odd he's using GRUB to boot a 16-bit kernel.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Vik2015
Posts: 15
Joined: Fri Sep 20, 2013 2:34 am

Re: Weevil (planned)

Post by Vik2015 »

omarrx024 wrote:It's also odd he's using GRUB to boot a 16-bit kernel.
Ahem, I was following the Bare Bones tutorial (found on the wiki) when I got the idea of writing something like MS DOS. So I didn't really care about the bootloader, but went straight into OS development.

P. S. Is there something wrong with using GRUB for this task? Or is it better to write my own bootloader? (I'd have to somehow parse ELF format and load it into the memory :shock: )
My own MS-DOS like OS :)
https://github.com/Vik2015/weevil/
http://bestsoft.azurewebsites.net/ wrote: With Bestsoft Space you can write operating system eaven if it your first software.
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Weevil (planned)

Post by iansjack »

omarrx024 wrote: Yes, but a 32-bit DOS would be pretty cool in my opinion.
In which case we're back to "write a proper driver".
Vik2015
Posts: 15
Joined: Fri Sep 20, 2013 2:34 am

Re: Weevil (planned)

Post by Vik2015 »

iansjack wrote:
omarrx024 wrote: Yes, but a 32-bit DOS would be pretty cool in my opinion.
In which case we're back to "write a proper driver".
As I said I want to try to use no (or minimal) BIOS calls :). Thought that means implementing keyboard driver, etc. Again, that's the fun!
My own MS-DOS like OS :)
https://github.com/Vik2015/weevil/
http://bestsoft.azurewebsites.net/ wrote: With Bestsoft Space you can write operating system eaven if it your first software.
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Weevil (planned)

Post by sortie »

Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Weevil (planned)

Post by Kevin »

omarrx024 wrote:I am also gonna *try* to write it using only real mode (64kb memory should be enough I guess?) but without using any BIOS calls (or just minimal amount of them).
That doesn't make a lot of sense. Why would you restrict yourself to Real Mode if you're not even using the BIOS, which is probably the only thing in RM that could possibly be seen as an advantage?

And being 16 bit isn't the defining property of DOS, in my opinion. You can probably still be quite DOS-like in Protected Mode. You wouldn't make any use of the protection features, of course, but having a much larger address space would definitely be worth it.
Developer of tyndur - community OS of Lowlevel (German)
Vik2015
Posts: 15
Joined: Fri Sep 20, 2013 2:34 am

Re: Weevil (planned)

Post by Vik2015 »

Kevin wrote:
omarrx024 wrote:I am also gonna *try* to write it using only real mode (64kb memory should be enough I guess?) but without using any BIOS calls (or just minimal amount of them).
That doesn't make a lot of sense. Why would you restrict yourself to Real Mode if you're not even using the BIOS, which is probably the only thing in RM that could possibly be seen as an advantage?

And being 16 bit isn't the defining property of DOS, in my opinion. You can probably still be quite DOS-like in Protected Mode. You wouldn't make any use of the protection features, of course, but having a much larger address space would definitely be worth it.
Hmm. I guess you are right. Going to Protected Mode isn't going to hurt :). Gonna implement it after I finish reading meaty skele.
My own MS-DOS like OS :)
https://github.com/Vik2015/weevil/
http://bestsoft.azurewebsites.net/ wrote: With Bestsoft Space you can write operating system eaven if it your first software.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Weevil (planned)

Post by Kevin »

Multiboot kernels are always started in Protected Mode by the bootloader. So unless you switch back to Real Mode (and I don't see any code to do that in your repository), you're automatically in PM.
Developer of tyndur - community OS of Lowlevel (German)
Vik2015
Posts: 15
Joined: Fri Sep 20, 2013 2:34 am

Re: Weevil (planned)

Post by Vik2015 »

Kevin wrote:Multiboot kernels are always started in Protected Mode by the bootloader. So unless you switch back to Real Mode (and I don't see any code to do that in your repository), you're automatically in PM.
Oh. That's why QEMU was going crazy when I tried to use interrupts :D
I guess all that stuff is on the wiki... Gonna read more.

P. S. @Sortie, thanks for the tutorial! It really helped alot in organizing my project and developing some kind of libc for my kernel!
My own MS-DOS like OS :)
https://github.com/Vik2015/weevil/
http://bestsoft.azurewebsites.net/ wrote: With Bestsoft Space you can write operating system eaven if it your first software.
ExeTwezz
Member
Member
Posts: 104
Joined: Sun Sep 21, 2014 7:16 am
Libera.chat IRC: exetwezz

Re: Weevil (planned)

Post by ExeTwezz »

Vik2015 wrote:Gitrepo is here https://github.com/Vik2015/weevil/.
Storing the address of the repo in your signature is a good idea, what do you think?
User Control Panel -> Profile -> Edit signature
Vik2015
Posts: 15
Joined: Fri Sep 20, 2013 2:34 am

Re: Weevil (planned)

Post by Vik2015 »

ExeTwezz wrote:
Vik2015 wrote:Gitrepo is here https://github.com/Vik2015/weevil/.
Storing the address of the repo in your signature is a good idea, what do you think?
User Control Panel -> Profile -> Edit signature
Indeed. Added it to the signature :)
My own MS-DOS like OS :)
https://github.com/Vik2015/weevil/
http://bestsoft.azurewebsites.net/ wrote: With Bestsoft Space you can write operating system eaven if it your first software.
Post Reply