Page 2 of 2

Re: OSDev Series Chapter 23

PostPosted: Mon Oct 11, 2010 10:08 pm
by Mike
Hello,

You are correct - it should be 0xff not 0xf. You are also correct that the series PMM initialization does not take into consideration data areas between 0-1MB in RAM (IVT,BDA,etc) that can cause possible issues depending on your design and feature set. This is also a bug -- pmmngr_init would prevent this (disregarding the 0xf bug) however main() never takes it into account.

The kernel region is marked as "in use" because it is in use by the kernel itself.

Re: OSDev Series Chapter 23

PostPosted: Mon Oct 11, 2010 10:53 pm
by Insightsoft
Thanks man...

Re: OSDev Series Chapter 23

PostPosted: Tue Oct 26, 2010 9:23 pm
by Insightsoft
Hi Mike,

We need to improve this:

Code: Select all
file: DebugDisplay.cpp
context code: void DebugUpdateCur(int x, int y)
code: #if 0 .... #end if


Code: Select all
Impact:  is causing a malfunction of that function... it never/or sometimes  runs the code inside the IF 0 statement... so the cursor update is not working properly...


Tell me something, please...

Re: OSDev Series Chapter 23

PostPosted: Wed Oct 27, 2010 5:28 am
by djsilence
Just delete that #if 0 ...#endif statement, and the cursor moving will work properly.

Re: OSDev Series Chapter 23

PostPosted: Wed Oct 27, 2010 8:12 am
by Insightsoft
It was what I did!

Re: OSDev Series Chapter 23

PostPosted: Wed Oct 27, 2010 6:36 pm
by djsilence
You mean you have this:
Code: Select all
//! Updates hardware cursor
void DebugUpdateCur (int x, int y)
{
    // get location
    uint16_t cursorLocation = y * 80 + x;

   // send location to vga controller to set cursor
   disable();
    outportb(0x3D4, 14);
    outportb(0x3D5, cursorLocation >> 8); // Send the high byte.
    outportb(0x3D4, 15);
    outportb(0x3D5, cursorLocation);      // Send the low byte.
   enable();


and cursor movement doesn't work properly for you??

Re: OSDev Series Chapter 23

PostPosted: Wed Oct 27, 2010 11:18 pm
by Insightsoft
I solved my problem, right from the beginning...
I posted this problem to help other who faces this problem...
(maybe changing master project)