Local apic timer initializing

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.
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: Local apic timer initializing

Post by Selenic »

lemonyii wrote:and i think edx is the lower 32bits of rdx, and change the edx,the high 32bits of rdx,will remain unchanged,right?
This is actually a very strange situation: for backwards-compatibility reasons, writing to the 8-bit or 16-bit registers (so, al, ah or ax) doesn't change the rest of the register, but if you write to the 32-bit register it clears the top half, for a couple of reasons (I think it's generally the preferred behaviour, at least for chip designers)
Post Reply