OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 3:34 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 12  Next
Author Message
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Feb 21, 2014 12:39 pm 
Offline
Member
Member

Joined: Wed Aug 21, 2013 7:08 am
Posts: 240
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 =)

_________________
https://gitlab.com/h0bby1/micro-kernel


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Feb 21, 2014 1:01 pm 
Offline
Member
Member
User avatar

Joined: Mon Mar 19, 2012 1:52 pm
Posts: 75
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.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Feb 21, 2014 1:09 pm 
Offline
Member
Member

Joined: Wed Aug 21, 2013 7:08 am
Posts: 240
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 =)

_________________
https://gitlab.com/h0bby1/micro-kernel


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat Feb 22, 2014 10:56 am 
Offline
Member
Member

Joined: Thu Aug 09, 2012 5:10 am
Posts: 41
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Mar 07, 2014 1:48 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Mar 07, 2014 9:36 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5134
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:


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Mar 20, 2014 12:11 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue Apr 22, 2014 1:36 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Wed Apr 23, 2014 10:58 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 26, 2007 1:53 am
Posts: 395
Yeah but why wouldnt you want to be able to do that?

_________________
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Apr 24, 2014 5:25 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu Apr 24, 2014 6:07 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 21, 2013 3:53 am
Posts: 449
Location: Asia, Singapore
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)


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Apr 25, 2014 10:56 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Apr 25, 2014 11:31 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Apr 25, 2014 11:43 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Apr 25, 2014 11:49 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 12  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group