When your OS goes crazy - Screenshots

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: When your OS goes crazy - Screenshots

Post by gravaera »

Maybe you could work next on making sure your OS is independent of any particular bootloader, given a pre-defined stable machine state :)
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
User avatar
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Re: When your OS goes crazy - Screenshots

Post by Neolander »

Actually, it works with any multiboot-compliant boot loader that has ELF32 support. It's just that writing "GRUB" makes the message easier to understand. And since in a very distant future where sheeps can fly, my OS could become less technical-oriented...

And if you replace the bootstrap part (cf visual explanation of my booting process below), it works with whatever bootloader you want... Only the machine state after execution of the bootstrap kernel matters, and content of BSK is highly bootloader- and platform-dependent and should have been rewritten anyway ^^
structure.png
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

Re: When your OS goes crazy - Screenshots

Post by xvedejas »

From working on video and fonts. The emulator crashed at this point :)
Attachments
error.png
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: When your OS goes crazy - Screenshots

Post by piranha »

I recently made the kernel do user-mode for all tasks above 1...here is the screen-shot of a typical boot-up now (this didn't happen before...lol), where pagefaults occur everywhere. How fun.

-JL
Attachments
snapshot16.png
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Synon
Member
Member
Posts: 169
Joined: Sun Sep 06, 2009 3:54 am
Location: Brighton, United Kingdom

Re: When your OS goes crazy - Screenshots

Post by Synon »

I've been working on this for a couple of hours, to learn; currently it just prints text. I wrote my itoa() and vsnprintf() functions kind of hurriedly and the result is that I've created a sexist kernel.

Image

Also, I don't know how many seconds there are in a triangle, but my reboot() function hasn't actually been written yet. Although, I know how to do it (in a nasty way -- using a triple fault through the keyboard controller).

I fixed it: Image
I can't be asked to deal with the cursor right now, it seems to move of it's own accord. Anyway, I guess that's the 'easy' part out of the way :(
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: When your OS goes crazy - Screenshots

Post by Selenic »

Synon wrote:my reboot() function hasn't actually been written yet. Although, I know how to do it (in a nasty way -- using a triple fault through the keyboard controller).
Why do you need to use 'a nasty way'? The wiki page for rebooting gives you a couple of fairly nice methods. The blank-IDT one, in particular, should be pretty nice: 'lidt <zero-limit ptr>; int $n'
Synon wrote:I can't be asked to deal with the cursor right now, it seems to move of it's own accord.
Text Mode Cursor should help there. Anyway, the only time you're likely to want to draw a cursor is when you're doing a prompt, so it should be hidden until then anyway.

Edit: This resource looks like it explains how to manipulate the text-mode cursor directly.
User avatar
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Re: When your OS goes crazy - Screenshots

Post by Neolander »

Something went wrong, I'm sure of it. But that error message sounds... well... not very helpful. Does this mean that the error has somehow something to do with triangles ?
diediedie3.png
User avatar
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Re: When your OS goes crazy - Screenshots

Post by Neolander »

In case you guys wondered what happens when 64-bit code is run in 32-bit compatibility mode...
no_longmode.jpeg
...add up a triple fault when the end of video memory is reached, and now you know :mrgreen:
Last edited by Neolander on Mon Jun 21, 2010 9:48 am, edited 1 time in total.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: When your OS goes crazy - Screenshots

Post by Nathan »

Neolander wrote:Something went wrong, I'm sure of it. But that error message sounds... well... not very helpful. Does this mean that the error has somehow something to do with triangles ?
diediedie3.png
Microsoft should put this message at their RSOD(Red Screen Of Death), that was introduced in the Windows 7. :P
User avatar
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Re: When your OS goes crazy - Screenshots

Post by Neolander »

Nathan wrote:Microsoft should put this message at their RSOD(Red Screen Of Death), that was introduced in the Windows 7. :P
Afaik, it was introduced in Vista...
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: When your OS goes crazy - Screenshots

Post by Nathan »

I never got a BSOD/RSOD when I was using Windows Vista, I just got it on my Windows 7.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: When your OS goes crazy - Screenshots

Post by Candy »

My best messup isn't captured in a screenshot. It was an instruction trace of over 2 million instructions when I was trying to get thread switching working. And demand-paging. That combination is what made it take so long.

I had implemented threading and a basic round-robin scheduler. I had forgotten (oops #1) to initialize the "next" pointer on one thread. That made it jump to arbitrary data within the valid memory region. That made the demand-pager (which was 100% working first time off) page in a page. It didn't wipe the page though. So, the threading logic reads that thread's descriptor, sees that the "runnable" enum isn't "RUNNABLE" and goes to the next "next" pointer. Which is, again, uninitialized. It kept doing this for some 30 cycles and then by pure chance came upon a page that was empty (bochs debugging :-)). That made it not runnable but did make the "next" pointer 0 - in effect, making it go to the idle thread.

So it worked, but did make quite a mess of it.
Laksen
Member
Member
Posts: 140
Joined: Fri Nov 09, 2007 3:30 am
Location: Aalborg, Denmark

Re: When your OS goes crazy - Screenshots

Post by Laksen »

Yes! My 8086 emulator is working. It's changing mode! Wait what's that, it's slowing down? What's going on?! Oh god what...
Attachments
bork.png
http://j-software.dk | JPasKernel - My Object Pascal kernel
jrepan
Posts: 11
Joined: Sat Feb 27, 2010 8:05 am
Location: Estonia

Re: When your OS goes crazy - Screenshots

Post by jrepan »

Bug in kmalloc made it give wrong addresses.
Attachments
myos-crash.png
User avatar
bobman801
Posts: 9
Joined: Wed Aug 26, 2009 9:25 pm
Location: New Zealand

Re: When your OS goes crazy - Screenshots

Post by bobman801 »

hey guys just started doing P-mode stuff the day before yesterday and here is a screen-shot of my awesome print string function which uses a mean as interrupt that only can print one letter to a location on the screen and change cursor location, that is the extent of my interrupts.
and this is how awesome it works.
failed printstring.JPG
obviously i didn't stop printing quick enough
the line drawing, open circle, two of the f's and that roman letter are flashing at the same time as the cursor is underneath the spade symbol, I printed the A before I tryed to print string.
- Bobman801 -
Post Reply