What's your OSDev AWWWW YEAH! moment?

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
h0bby1
Member
Member
Posts: 240
Joined: Wed Aug 21, 2013 7:08 am

Re: What's your OSDev AWWWW YEAH! moment?

Post by h0bby1 »

the very first thing that got me into it is when i booted a floppy with a drivers that initalized audio card and modulated a sinus on keyboard input, in 100% asm with a short pci scan , on real hardware with a via integrated sound card

then when i got it to run on virtual machine, it make development so much easier

then when i implemented my abi, and was able to convert .dll and .so to this format with the dynamic linking and relocation to load binaries 'in place' and resolve import/export at load time, to run binaries compiled from C code

then when implemented the whole base memory system with the allocation, memory pointer reference and tree/node system on which everything else is based

then when i implemented usb, it was the only thing that i was very fearful about, because it's something i was totally unfamiliar with unlike video and audio and multimedia things, and it took me hell of time to figure it out, but now it works well

then when i got the font and image system to work

now i just finished multi tasking, and i have to finish the windows event management

the next big wow will be when i'll have networking operational, and able to stream an audio or video file =) and implement all server functionalities =)
User avatar
Pancakes
Member
Member
Posts: 75
Joined: Mon Mar 19, 2012 1:52 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by Pancakes »

h0bby1 wrote:...then when i implemented usb, it was the only thing that i was very fearful about, because it's something i was totally unfamiliar with unlike video and audio and multimedia things, and it took me hell of time to figure it out, but now it works well.....

.....the next big wow will be when i'll have networking operational, and able to stream an audio or video file =) and implement all server functionalities =)...
Oh, man that is awesome. I have not done a lot of work with USB or PCI, only very little. Yes, will be awesome when you can stream audio or video file across the network! Yea, when I found out there existed emulators it was a great moment because it did make it so much easier to test.
h0bby1
Member
Member
Posts: 240
Joined: Wed Aug 21, 2013 7:08 am

Re: What's your OSDev AWWWW YEAH! moment?

Post by h0bby1 »

and as i use the ndis system of windows, i can just pick up network drivers for any pci or usb network device that has windows drivers, like the ndiswrapper of linux, just need to parse a .ini file and do a little work, but then it can load up any windows drivers with the ndis layer emulation

as i already have code to decode and playback video, and handling also streaming over networking, same for audio, and icecast things, i just wonder about camera how that work, or if maybe directshow driver can be loaded, vlc can load and use directshow codec, but i'm not sure how it works for webcam or firewire video aquisition device, that could be plugged into an icecast like thing, to have live video streaming

also one of next step is to work out with X11 ddx drivers for having yuv conversion, overlay, hardware resize, and that sort of things, it will be the next big piece of things

after that i can start coding some serious apps =)
halofreak1990
Member
Member
Posts: 41
Joined: Thu Aug 09, 2012 5:10 am

Re: What's your OSDev AWWWW YEAH! moment?

Post by halofreak1990 »

My greatest "AWWWW YEAH! moment" was when I successfully managed to boot the second CPU in my dual core laptop.
<PixelToast> but i cant mouse

Porting is good if you want to port, not if you want maximum quality. -- sortie
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by onlyonemac »

I think I was pretty impressed with myself when I managed to crash my PC into an infinite loop of displaying green smiley faces (just a coincidence, honest!) from the boot sector of a floppy disk. And it wasn't supposed to be an infinite loop anyway.

Then there was the time I got my real CPU into protected mode. I had spent weeks battling through incomplete online tutorials and muddled reference information (half of which made reference to DOS) before even drafting up my GDT, then I finally got to the stage where I got executable code out of the thing and got Bochs to display an "A" (this time without infinite loop) without triple-faulting. Then I booted my real PC from it.

Now my next milestone is to get the kernel to load a user program and run it... (actually not too far off, relatively speaking)
Octocontrabass wrote:My most recent? Writing to video memory from the boot sector of a floppy disk.

...on a Macintosh Quadra 605.
You're also into old Macs? I've got a Performa 475 (coincidentally the home version of the Quadra 605), but I haven't done any low-level work on it. I enjoy the Macintosh for what it is: unsurpassable, in my opinion. Anyway, are you on the 68kMLA forums? (I am.)
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by Octocontrabass »

onlyonemac wrote:You're also into old Macs? I've got a Performa 475 (coincidentally the home version of the Quadra 605), but I haven't done any low-level work on it. I enjoy the Macintosh for what it is: unsurpassable, in my opinion. Anyway, are you on the 68kMLA forums? (I am.)
I wouldn't say I'm into old Macs so much as old computers in general. I'm not on any Mac-related forums.

As far as design goes, I'm thinking System 7 could have really benefited from proper user/supervisor separation. I've barely used it and already managed to crash it a few times! :lol:
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by onlyonemac »

I'd say as a user I find it pretty stable, but maybe not so much as a programmer...

Apple did stress in their programmer's reference documentation that it is OUR responsibility to check for NULL pointers, and to be honest with you I think that encourages better coding practice, as otherwise people rely on protection systems and we just get a bunch of GPFs (which is my experience with Windows 3.1).
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by onlyonemac »

Recently I remapped the PIC without realising that I had just reached my second milestone in my development process! I figured it out one evening when I was messing around with interrupts.

P.S. It seems that it's not actually necessary to remap the PIC if you aren't trying to catch processor exceptions. At least that's how it goes in Bochs.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: What's your OSDev AWWWW YEAH! moment?

Post by Jezze »

Yeah but why wouldnt you want to be able to do that?
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by onlyonemac »

Because I'm too lazy to write exception handlers at present :) . I'd rather spend my time actually making it do stuff, rather than writing a pile of exception handlers which I can't exactly test very well in any case.

If I find I'm getting a lot of triple-faults then I might go back and add the exception handlers.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

Re: What's your OSDev AWWWW YEAH! moment?

Post by Bender »

onlyonemac wrote:Because I'm too lazy to write exception handlers at present :) . I'd rather spend my time actually making it do stuff, rather than writing a pile of exception handlers which I can't exactly test very well in any case.

If I find I'm getting a lot of triple-faults then I might go back and add the exception handlers.
Good luck then, at least with debugging.
It doesn't take much time for writing exception handlers, there are just 31 and out of that you have some reserved ones. In my OS (for now) I just print some characters ('G' for GPF, 'D' for DF, etc.) and do the appropriate operations. You may wish to add an infinite loop.
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: What's your OSDev AWWWW YEAH! moment?

Post by onlyonemac »

As I said, if I feel that exception handlers are necessary then I'll go back and add them. But for now the PICs out of the exception handlers' way.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What's your OSDev AWWWW YEAH! moment?

Post by iansjack »

You can't be bothered to write exception handlers? Are you serious? I suspect that you are substituting "can't be bothered to" for "don't understand how to". I see little chance of you having any success in OS development. And I do hope you are not going to come back here asking questions that arise as a consequence.
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: What's your OSDev AWWWW YEAH! moment?

Post by DavidCooper »

What he probably means is that he hasn't needed any thus far because he's still able to spot his mistakes easily whenever there's a tripple fault. I have never bothered to write exception handlers for the same reason, but if random crashes start to happen and I can't find them easily, I'll maybe do something about it then.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What's your OSDev AWWWW YEAH! moment?

Post by iansjack »

I'd agree with that but for the fact that the same poster has asked in the past how he can know which instruction is causing a GPF. That's the sort of question that I hope won't be asked again by someone who can't be bothered with exception handlers.
Post Reply