Page 5 of 12
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Thu Jul 31, 2014 1:57 pm
by onlyonemac
kutkloon7 wrote:although I doubt it works as well as for a cafe, as OSes are complicated and the different parts have to work together
Umm... The different parts of cafe's have to work together as well, otherwise the waitress will take the order, the people will be sitting in the bowling line, but the coffee won't be ready in time.
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Thu Jul 31, 2014 3:40 pm
by AndrewAPrice
We should parody this thread with "What's your OSDev AW HELL NAW! moment?"
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Aug 01, 2014 8:55 pm
by Peterbjornx
compositor adapted to use cairo for rendering: (bars are leftovers of switch to vt2, screen is only updated where changes are made and there is no event for vt change yet)
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Tue Aug 12, 2014 3:45 pm
by Primis
Combuster wrote:640x480x8
Are you sure it wasn't 640x480x4 or 320x240x8?
Nope, it was 640x480x8. I wasn't using a "mode" I manually set the regsiters. It worked on emulators, but only on older hardware. Newer cards didn't understand the resolution/color combination.
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Wed Aug 13, 2014 4:34 am
by Combuster
I'd expect the screen to be the one that rejects such a mode.
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Aug 15, 2014 10:51 am
by onlyonemac
Combuster wrote:I'd expect the screen to be the one that rejects such a mode.
Or blows up. WATCH OUT!!! And READ THE WARNINGS in the Wiki!
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Thu Aug 21, 2014 10:07 am
by Roman
1. Realized, that I can take user name "Roman".
2. Made my boot loader load second stage by parsing my own filesystem.
3. Fixed ATA driver.
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Aug 22, 2014 5:40 am
by max
Roman wrote:1. Realized, that I can take user name "Roman".
Haha, I know that feel
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Thu Aug 28, 2014 4:42 pm
by SpyderTL
I just had another AAAAWW YEEEAAH moment. I got 2 threads running on 1 CPU.
AAAAWW YEEEAAH!
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Oct 24, 2014 2:53 pm
by AndrewAPrice
I was tracking down a bug - I would get a triple fault when I terminated a thread.
My system call handler runs using my thread's stack, and I was unmapping the live stack from virtual memory. Instead, I invented a thread cleaning thread (fun to say!), and when I destroy threads I move it into a limbo queue and wake up my thread cleaning thread. This involved working on many things, including some interesting atomics like sleep_if_not_set - which I'm going to reuse in lots of places around the kernel.
Here's my thread cleaning thread -
thread.c - line 102.
My aww yeah moment was when I made a huge test of lots of threads that destroyed at random moments, and watched it collect them all!
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Oct 24, 2014 4:52 pm
by Jezze
What is the benefit in keeping a stack of a closed thread around if you are not using it anymore instead of just removing it directly when it stops executing?
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Fri Oct 24, 2014 8:56 pm
by sortie
Pointers to variables on the stack might still be alive until the thread is joined. Depends on the design whether this is handled.
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Tue Nov 11, 2014 6:56 pm
by SpyderTL
Just had two back-to-back AAAAWW yeahhh moments.
The first was adding support for parsing complex, nested statements in my CLI/shell.
The second was using it to perform trigonometry!
Code: Select all
>Float.Sine(Float.Pi)
0.00000
>Float.Cosine(Float.Pi)
1.00000
AAAAWWE YYEEEAAAHHH!
That feels good!
Next up... 3D transforms!!
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Thu Nov 13, 2014 2:56 pm
by AndrewAPrice
My 64-bit kernel is iterating over the PCI bus, detecting my IDE controller, detecting and reading sectors from my ATAPI drive (which it's doing from another thread after the kernel has initialized!), scans it for a known file system (asynchronously and multithreaded - currently only detects ISO 9660) - and then mounts it. Aww yeah.
- ml1.png (8.37 KiB) Viewed 7411 times
Now to finish fleshing out my file system driver to iterate through directories and read files, which is going to be fully asynchronous (I am inspired by node.js).
Re: What's your OSDev AWWWW YEAH! moment?
Posted: Mon Nov 17, 2014 12:35 am
by no92
Seeing that my compiler can compile a simple OS that prints something!