Loading meh kernel above 0x10000

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.
User avatar
ChazZeromus
Member
Member
Posts: 61
Joined: Sun Jun 22, 2008 4:09 pm

Re: Loading meh kernel above 0x10000

Post by ChazZeromus »

Oh okay. I get it. So what exactly happens if access to an address about the 20-bit limit while not having the A20 mask? I'd be afraid to hear a circuit glitch if that would happen, lol.
Image
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Loading meh kernel above 0x10000

Post by Love4Boobies »

That's exactly what you want to happen - NOT have a mask :D The way I see it (and this is probably how all masks work) is that it is AND-ed to your address. So in this case you have a 21-bit address (say FFFF:FFFF) and your mask is ...111011111111111111111111b. You can't have addresses bigger than 21 bits anyway, and when you turn the mask off (by enabling the A20 gate), you set the 0 bit to 1 again.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
ChazZeromus
Member
Member
Posts: 61
Joined: Sun Jun 22, 2008 4:09 pm

Re: Loading meh kernel above 0x10000

Post by ChazZeromus »

Oh, who'd knew. Well, that explains the wrap-around.
Image
Post Reply