OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:01 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 809 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 54  Next
Author Message
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 02, 2010 7:13 am 
Offline
Member
Member
User avatar

Joined: Tue Jun 02, 2009 4:35 pm
Posts: 737
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
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.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 02, 2010 7:32 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
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 ^^
Attachment:
structure.png
structure.png [ 20.65 KiB | Viewed 14608 times ]


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 02, 2010 11:34 am 
Offline
Member
Member
User avatar

Joined: Thu Jun 04, 2009 5:01 pm
Posts: 168
From working on video and fonts. The emulator crashed at this point :)


Attachments:
error.png
error.png [ 86.29 KiB | Viewed 14574 times ]

_________________
Valix is an experiment in an interpreted userspace with object-oriented and functional design patterns. Developers needed! Join #valix on irc.freenode.net
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 02, 2010 11:49 am 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 7:42 pm
Posts: 1391
Location: Unknown. Momentum is pretty certain, however.
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
snapshot16.png [ 15.07 KiB | Viewed 14569 times ]

_________________
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 02, 2010 4:38 pm 
Offline
Member
Member

Joined: Sun Sep 06, 2009 3:54 am
Posts: 169
Location: Brighton, United Kingdom
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 :(


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon May 03, 2010 4:14 am 
Offline
Member
Member

Joined: Sat Jan 23, 2010 2:56 pm
Posts: 123
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.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun May 09, 2010 10:17 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
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 ?
Attachment:
diediedie3.png
diediedie3.png [ 13.85 KiB | Viewed 14225 times ]


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Jun 20, 2010 2:11 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
In case you guys wondered what happens when 64-bit code is run in 32-bit compatibility mode...
Attachment:
no_longmode.jpeg
no_longmode.jpeg [ 56.27 KiB | Viewed 14021 times ]

...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.

Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Jun 20, 2010 2:46 pm 
Offline
Member
Member
User avatar

Joined: Sun Jul 19, 2009 1:48 pm
Posts: 201
Location: Brazil
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 ?
Attachment:
diediedie3.png

Microsoft should put this message at their RSOD(Red Screen Of Death), that was introduced in the Windows 7. :P

_________________
About.Me - Blog


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Jun 21, 2010 9:49 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 23, 2010 3:01 pm
Posts: 228
Location: Uppsala, Sweden
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...


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Jun 21, 2010 10:19 am 
Offline
Member
Member
User avatar

Joined: Sun Jul 19, 2009 1:48 pm
Posts: 201
Location: Brazil
I never got a BSOD/RSOD when I was using Windows Vista, I just got it on my Windows 7.

_________________
About.Me - Blog


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Mon Jun 28, 2010 2:17 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
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.


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Jul 07, 2010 4:15 am 
Offline
Member
Member

Joined: Fri Nov 09, 2007 3:30 am
Posts: 140
Location: Aalborg, Denmark
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
bork.png [ 49.74 KiB | Viewed 13745 times ]

_________________
http://j-software.dk | JPasKernel - My Object Pascal kernel
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Thu Jul 08, 2010 3:31 am 
Offline

Joined: Sat Feb 27, 2010 8:05 am
Posts: 11
Location: Estonia
Bug in kmalloc made it give wrong addresses.


Attachments:
myos-crash.png
myos-crash.png [ 36.63 KiB | Viewed 13690 times ]
Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Aug 01, 2010 8:41 pm 
Offline
User avatar

Joined: Wed Aug 26, 2009 9:25 pm
Posts: 9
Location: New Zealand
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.

Attachment:
failed printstring.JPG
failed printstring.JPG [ 78.36 KiB | Viewed 13542 times ]


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 -


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 809 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 54  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 57 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