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.
Hobbes wrote:You're welcome. Now can you calculate the linear address of the GDT?
The liner address of GDT should be $BOOTSEG<<4+gdt, is that right? Cause now the BOOTSEG is a segment address now.
I decided to use paging directly after set cr0 (here not set), so the GDTR is a fixed value; To display a 'P' is just used to test whether I have enter the protected mode.
it's "initialized", know your terminology (which begs the question, how often did you get corrected by the compiler's spelling?)
And this jump... do I need a ljmp or just jmp?
What is the difference between a far jump (what ljmp does, stupid GAS confusing people) and a near jump (jmp)? Have you read the manual on the matter?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
it's "initialized", know your terminology (which begs the question, how often did you get corrected by the compiler's spelling?)
And this jump... do I need a ljmp or just jmp?
What is the difference between a far jump (what ljmp does, stupid GAS confusing people) and a near jump (jmp)? Have you read the manual on the matter?
wrong spell of the word...
the limit of ljmp is 64kb, while jmp has the limit 256b?
I am using this book:Programming Ground Up, is there any AT&T asm manual I can use?
Leyley, you are only seconds from somebody to tell you to RTFM. Knowing the difference between near and far jumps is a prerequisite for OS development.
the limit of ljmp is 64kb, while jmp has the limit 256b?
you are only seconds from somebody to tell you to RTFM
In this case, I think "Whose code did you steal" would almost be more appropriate
@OP: Read the forum rules. In particular the "required knowledge" part.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Hobbes wrote:Leyley, you are only seconds from somebody to tell you to RTFM. Knowing the difference between near and far jumps is a prerequisite for OS development.
You were wrong - it took Combuster 20 minutes from your post to his.
the limit of ljmp is 64kb, while jmp has the limit 256b?
you are only seconds from somebody to tell you to RTFM
In this case, I think "Whose code did you steal" would almost be more appropriate
@OP: Read the forum rules. In particular the "required knowledge" part.
Thanks for the OP. As I said before, I am a rookie of this, I will collect the required knowledge before next post. As you said RTFM.
All of my codes are written by myself, I have read some codes but I never copy them, if you think it's stealing. I like the code style of BSD and the design of Linux, so I will using some thinking of them (if I will do I real OS, I will write comment where I find them, I have said the code above is just a practice). Whatever, thanks for you posts, I am going to RTFM now.
Hobbes wrote:Leyley, you are only seconds from somebody to tell you to RTFM. Knowing the difference between near and far jumps is a prerequisite for OS development.
You were wrong - it took Combuster 20 minutes from your post to his.
Maybe he was on lunch
Technically, I already posted a covert RTFM 25 minutes before hobbes suggested it
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]