What's your OSDev AWWWW YEAH! moment?
-
- Member
- Posts: 116
- Joined: Thu May 06, 2010 4:34 am
- Libera.chat IRC: peterbjornx
- Location: Leiden, The Netherlands
- Contact:
Re: What's your OSDev AWWWW YEAH! moment?
Finally finding the memory thrashing bug that has been eluding me for over a year:
https://github.com/posnk/posnk/commit/0 ... e14f8fca14
To do this I built my VFS + File stream + FS driver + block device + drivermgr code as userland binary for linux and wrapped the file syscalls in a FUSE driver
https://github.com/posnk/posnk/commit/0 ... e14f8fca14
To do this I built my VFS + File stream + FS driver + block device + drivermgr code as userland binary for linux and wrapped the file syscalls in a FUSE driver
- DeezRamChips
- Member
- Posts: 132
- Joined: Fri Apr 08, 2016 5:03 am
- Location: atapio.cpp - why won't you work :(
- Contact:
Re: What's your OSDev AWWWW YEAH! moment?
1) When I had grub running for the first time
2) When I ploted a pixel in vesa for the first time (1024x768x32)
3) When I drew a 64x64x24 bitmap of doge on real hardware
4) When I drew text in Graphics mode
2) When I ploted a pixel in vesa for the first time (1024x768x32)
3) When I drew a 64x64x24 bitmap of doge on real hardware
4) When I drew text in Graphics mode
My github page: https://github.com/AlexandreRouma
Meme-deving since 420 Bc !
YouTube: https://www.youtube.com/channel/UCyJnOD ... C8Y7pccc6A
Twitter: https://twitter.com/WhatsTheGeekYT
Meme-deving since 420 Bc !
YouTube: https://www.youtube.com/channel/UCyJnOD ... C8Y7pccc6A
Twitter: https://twitter.com/WhatsTheGeekYT
Re: What's your OSDev AWWWW YEAH! moment?
When I started understanding interrupts.
When I figured out how to deal with the mouse.
When I figured out how to deal with the mouse.
Last edited by Octacone on Sun May 21, 2017 6:19 am, edited 1 time in total.
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: What's your OSDev AWWWW YEAH! moment?
Haven't posted in this thread since I was a newbie, so there's definitely some new interesting stuff:
1. When I set VESA mode 1366x768 on real HW for the first time.
2. When I performed my first ACPI shutdown.
3. When I studied the disassembly of my physical DSDT and read the percentage and status of my laptop's battery without an AML interpreter.
4. When I read from my SATA hard disk (in IDE mode) on real HW and a real ATA drive with my PCI IDE driver.
1. When I set VESA mode 1366x768 on real HW for the first time.
2. When I performed my first ACPI shutdown.
3. When I studied the disassembly of my physical DSDT and read the percentage and status of my laptop's battery without an AML interpreter.
4. When I read from my SATA hard disk (in IDE mode) on real HW and a real ATA drive with my PCI IDE driver.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: What's your OSDev AWWWW YEAH! moment?
Finally got my canvas implementation to run.
It's now possible for an application to create a canvas component, which creates a shared memory region between the program and the window server. Canvas buffers are automatically resized when the component changes it's size.
I had a terrible bug where the client would free the same buffer that it was currently using, that was because the window server may send multiple "wait-for-acknowledge" events for the same buffer - what the client did not consider.
With this easy sample code it's possible to create a user interface application as seen below:
http://pastebin.com/PVAcjWdJ
It's now possible for an application to create a canvas component, which creates a shared memory region between the program and the window server. Canvas buffers are automatically resized when the component changes it's size.
I had a terrible bug where the client would free the same buffer that it was currently using, that was because the window server may send multiple "wait-for-acknowledge" events for the same buffer - what the client did not consider.
With this easy sample code it's possible to create a user interface application as seen below:
http://pastebin.com/PVAcjWdJ
Re: What's your OSDev AWWWW YEAH! moment?
That is just awesome. Really like the look of your GUI.max wrote:Finally got my canvas implementation to run.
It's now possible for an application to create a canvas component, which creates a shared memory region between the program and the window server. Canvas buffers are automatically resized when the component changes it's size.
I had a terrible bug where the client would free the same buffer that it was currently using, that was because the window server may send multiple "wait-for-acknowledge" events for the same buffer - what the client did not consider.
With this easy sample code it's possible to create a user interface application as seen below:
http://pastebin.com/PVAcjWdJ
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
Re: What's your OSDev AWWWW YEAH! moment?
Agree, looks great.octacone wrote:That is just awesome. Really like the look of your GUI.max wrote:Finally got my canvas implementation to run.
It's now possible for an application to create a canvas component, which creates a shared memory region between the program and the window server. Canvas buffers are automatically resized when the component changes it's size.
I had a terrible bug where the client would free the same buffer that it was currently using, that was because the window server may send multiple "wait-for-acknowledge" events for the same buffer - what the client did not consider.
With this easy sample code it's possible to create a user interface application as seen below:
http://pastebin.com/PVAcjWdJ
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: What's your OSDev AWWWW YEAH! moment?
Just now, when I "identified" a SATA device using AHCI, after a long 12 hours of frustration. The screenshot is my kernel's log via QEMU's serial port.
Still need to implement reading a SATA device, and then I can natively boot from SATA.
Still need to implement reading a SATA device, and then I can natively boot from SATA.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: What's your OSDev AWWWW YEAH! moment?
+1 Haha.MessiahAndrw wrote:We should parody this thread with "What's your OSDev AW HELL NAW! moment?"
Re: What's your OSDev AWWWW YEAH! moment?
That could be the When your OS goes crazy thread.Lukand wrote:+1 Haha.MessiahAndrw wrote:We should parody this thread with "What's your OSDev AW HELL NAW! moment?"
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum
Re: What's your OSDev AWWWW YEAH! moment?
That only works when you can take a screenshot of it, which usually means it's not that broken.
For a serious mix of "awww yeah" and "awww naw": once I was working on some dumb project and I had put it on a floppy drive (running it on real hardware, yo). Then at some point for some unrelated reason (used PKZIP at the wrong place x_x) the whole Windows install broke up and I was pretty much forced to use that floppy to boot the system. Even had to complete a school assignment using the software in it (・×・)
No, I don't have that floppy around anymore.
For a serious mix of "awww yeah" and "awww naw": once I was working on some dumb project and I had put it on a floppy drive (running it on real hardware, yo). Then at some point for some unrelated reason (used PKZIP at the wrong place x_x) the whole Windows install broke up and I was pretty much forced to use that floppy to boot the system. Even had to complete a school assignment using the software in it (・×・)
No, I don't have that floppy around anymore.
-
- Member
- Posts: 1146
- Joined: Sat Mar 01, 2014 2:59 pm
Re: What's your OSDev AWWWW YEAH! moment?
I think they're usually running the OS in a virtual machine/emulator, or take a picture of the monitor with their phone/camera.Sik wrote:That only works when you can take a screenshot of it, which usually means it's not that broken.
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
Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Re: What's your OSDev AWWWW YEAH! moment?
Well yeah, but when the OS is so utterly broken that you start yelling like that it won't even show anything on screen usually. Although I suppose an alternative case may be something like wiping your main hard disk and the back-up drives or accidentally bricking the firmware...
Re: What's your OSDev AWWWW YEAH! moment?
Hi,
My "AWW YEAH!" was when I booted my "Hello world" kernel on real hardware. That was really quite impressive to me hahaha
Now back to my VMM...
Cheers,
Walt
My "AWW YEAH!" was when I booted my "Hello world" kernel on real hardware. That was really quite impressive to me hahaha
Now back to my VMM...
Cheers,
Walt
Re: What's your OSDev AWWWW YEAH! moment?
I had a nice one for that. I started up my brand new task switching, with a lot of new things and two bugs. It looked fine. I suspected it was too slow though, because it took a couple million instructions in Bochs to get to the idle thread, and I had no idea it would do that - a couple thousand was what I expected.zenzizenzicube wrote:That could be the When your OS goes crazy thread.Lukand wrote:+1 Haha.MessiahAndrw wrote:We should parody this thread with "What's your OSDev AW HELL NAW! moment?"
So I turned on tracing and traced *every* instruction. For a few million. And then figured out what happened.
It finishes the boot procedure and enters the task switch logic. It switches to task 1. Task 1 executes, says "hello world" and suspends execution, marking itself as blocked (temp fix). Task switcher finds next task in list and oops - bug 1 - it's uninitialized. So it goes to task X (where X is a random 32-bit number). Luckily it happens to match the range for tasks (which I preallocated to 256MB of address space). No memory mapped there, so it demand-pages in an empty page. That's bug 2 though, it forgets to zero the new page before releasing it. So then it reads another uninitialized block of data for the next task, which is not runnable, and it goes to the next task (uninitialized), to find a not-runnable task demand-paged in, to go to the next ..... and eventually it hit a 0 pointer. Which was the ID of the idle task, so it switches to the idle task and stops.
So two bugs in perfect harmony creating the desired behavior.