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.
Strange image.
I usually do not post there (I posted only once, and never again) there. You would be suprised when you could see how my OS looks like (negative) in this 30% done-developement stages...
It is. It happened because a bug in my window creation function, in which IRQs are allowed to happen. So when the mouse is moved, the OS uses XMM registers to redraw the screen (an SSE memcpy really.) Yet, the graphics code is using the same XMM registers for alpha blending, thus corrupting the state and making weird colors. I should add SIMD context saving to my IRQ handler.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
It is. It happened because a bug in my window creation function, in which IRQs are allowed to happen. So when the mouse is moved, the OS uses XMM registers to redraw the screen (an SSE memcpy really.) Yet, the graphics code is using the same XMM registers for alpha blending, thus corrupting the state and making weird colors. I should add SIMD context saving to my IRQ handler.
That's 2 bugs - using SSE within an IRQ handler (for any reason); and touching one device's stuff (video) from a completely unrelated device driver (mouse).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
catnikita255 wrote:Green starfield. Hello to GlauxOS!
I will be genuinly impressed if you tell me that the system is in text mode when this happens.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
On the flipside, once on Windows 98 I got a S3 driver to glitch when switching video modes and I ended up with text mode with an arrow in the middle (and a column of glitch pixels to go along, while we're at it), so it's not exactly an impossible feat.
Last edited by Sik on Fri Sep 23, 2016 11:36 pm, edited 1 time in total.