Regarding Intel Manual ....

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

Regarding Intel Manual ....

Post by aruljose »

I am reading OS FAQ.

I found the following in several places.
Make sure you downloaded the latest Intel Manual and got a deep look through it.
Do they actually mean reading the entire intel manual, or just skim and know what is there.... Will the line by line reading of the entire manual help ???


IA-32 Intel? Architecture Software Developer's Manual, Volume 3
alone has 1140 pages. I am not bothered to spend time. But I just wanted to know what is exactly meant.

Thanks for maintaining the FAQ.

Arul Jose
raywill

Re:Regarding Intel Manual ....

Post by raywill »

I think we should read the parts we need. for example,beginners do not need to care about IA-32e

BTW,you can get a real book(not pdf) by filling a form in intel 's website for free.
srg

Re:Regarding Intel Manual ....

Post by srg »

I'm personally using the Intel 386 Programmers reference manual at first, which is only about 360 pages. This is because mine is just for the 386 for now. I'll add newer stuff later.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Regarding Intel Manual ....

Post by Pype.Clicker »

well, it will be pretty hard for you to design a proper virtual-memory-manager component for an OS if you don't know how the intel MMU works, for instance. Same for interrupts and the like.

So make at least sure you know what each section is about and make sure you know the details of the things you're currently dealing with. For instance, many people will miss the 'error code' pushed on the stack when an #PG exception is thrown, because they haven't got a deep-enough look at "interrupts and exceptions" chapter, or wonder why their task switching code no longer works once userlevel is enabled...
JAAman

Re:Regarding Intel Manual ....

Post by JAAman »

at least skim, and fully read all the important sections (in fact, i recommend reading (vol.3) twice -- before starting your OS) this is one of the most important references you will ever find, with complete and full explainations of every aspect of the CPU

be sure to make yourself familier with the section numbers, so you find it easier to return to later for reference

the most important sections to study are: 3,4,5,6,16 (chapters 1 & 2 are very helpful for begining)

7,8 will become more important when you get into SMP

chapter 9 is of less relevance to OSdevers (but still an interesting read)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Regarding Intel Manual ....

Post by Solar »

You can probably get away with just skimming it and going mainly by tutorials and trial-by-error and asking many questions on forums. But reading it thoroughly - I too recommend book #3 at least two times before starting work, and #2 once just to get an idea what's available in the instruction set - will allow to make good design decisions, and to avoid the more stupid mistakes.

Writing an OS is similar to writing a device driver - for the CPU. You should know the chip you're programming for, or your product will be lackluster.
Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Regarding Intel Manual ....

Post by Candy »

Solar wrote: Writing an OS is similar to writing a device driver - for the CPU. You should know the chip you're programming for, or your product will be lackluster.
I can add, it's also similar to writing a device. You must know what it's supposed to do and how you want it to do that before you can get it working properly. If you don't decide beforehand what you're going to make, you're going to have to change the ad-hoc decisions you're going to make.
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:Regarding Intel Manual ....

Post by kataklinger »

There's a lot of new chapters in newest manual about 64 extensions (separate PDFs) and virtualization ;)
Warrior

Re:Regarding Intel Manual ....

Post by Warrior »

Don't exactly skim it, use it as a reference when you need info on a said topic and read all of the info it has to offer.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Regarding Intel Manual ....

Post by Pype.Clicker »

i can remember that first copy of the manual i printed on recycled paper, chapter after chapter, taking them with me on course, and translating them to french (taking notes of the GDT, IDT, paging, etc.) in a spiral notebook when the courses were too boring ::)
JAAman

Re:Regarding Intel Manual ....

Post by JAAman »

kataklinger wrote: There's a lot of new chapters in newest manual about 64 extensions (separate PDFs) and virtualization ;)
no, most of the 64bit stuff is in the same chapters with the 32bit stuff (though there are a couple new subsections that clarify some 64bit things) but its pretty much integrated together -- you cannot read about one without finding the information on the other

and i do recommend getting the hard copies, as they are easier to use in many ways (though you should have the PDFs also -- they can be searched if you need to -- and more portable if you put it on your PDA ;) )

virtualization though may be separate still (don't know i haven't looked, but its fairly new)
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:Regarding Intel Manual ....

Post by kataklinger »

Well I have these two documents:

Intel? Extended Memory 64 Technology
Software Developer?s Guide
Volume 1 of 2
Revision 1.1

Intel? Extended Memory 64 Technology
Software Developer?s Guide
Volume 2 of 2
Revision 1.1

Haven't read them yet! :(
srg

Re:Regarding Intel Manual ....

Post by srg »

kataklinger wrote: Well I have these two documents:

Intel? Extended Memory 64 Technology
Software Developer?s Guide
Volume 1 of 2
Revision 1.1

Intel? Extended Memory 64 Technology
Software Developer?s Guide
Volume 2 of 2
Revision 1.1

Haven't read them yet! :(
I'm wondering if the AMD manuals would be better for x86_64.
JAAman

Re:Regarding Intel Manual ....

Post by JAAman »

shouldn't be much difference between the intel and AMD manuals, (except of course the few differences -- mostly fast_syscalls, and CPUID)

it is designed to work on both if it is written for one

personally i prefer the layout of Intel vol.3 over AMD vol.2, but thats personal preference, both ISR references have advantages (though i usually use Intel)

i have hard-copies of both, but there aren't many differences in the actual implementation



i don't have either of those documents, just the Intel Manuals, which contain all relevent information (mine is revision 16, 14 doesn't have it)
marcio.f

Re:Regarding Intel Manual ....

Post by marcio.f »

raywill wrote:BTW,you can get a real book(not pdf) by filling a form in intel 's website for free.
Where? I haven't found it ???
Post Reply