Some Random Thoughts..
Just a place to put some random thoughts..

The question for today was: Who really need ? I understand why it is there (legacy x86 blah blah..) but is there anyone who runs an 8086 application on Pentium? But it is still there and you still have to enable it. And thats exactly what I did. To make the matters worse, the method to enable it is not the same for all the architectures. I just use the normal 8042 method which works on my machine.. and in bochs. I went through the and was feeling giddy immediately.

Anyways, after that I looked for and initialized gdtr. That was not very difficult. Currently I am using ring 0 data and code segments. And then the natural thing to do was to enable PE bit in CR0 (Thats the whole purpose of this excersise.. isnt it?) :).

Now I am in 32-bit protected mode. From tomorrow, I will start with screen buffer functions in C!

SOS update
The question for today was: Who really need ? I understand why it is there (legacy x86 blah blah..) but is there anyone who runs an 8086 application on Pentium? But it is still there and you still have to enable it. And thats exactly what I did. To make the matters worse, the method to enable it is not the same for all the architectures. I just use the normal 8042 method which works on my machine.. and in bochs. I went through the and was feeling giddy immediately.

Anyways, after that I looked for and initialized gdtr. That was not very difficult. Currently I am using ring 0 data and code segments. And then the natural thing to do was to enable PE bit in CR0 (Thats the whole purpose of this excersise.. isnt it?) :).

Now I am in 32-bit protected mode. From tomorrow, I will start with screen buffer functions in C!


posted by rumplestiltskin @ 6:35 pm 0 comments

0 Comments:


Post a Comment