hello
Ive been looking at the cromwell bios code and Im having trouble understanding a part of it.
Here's a part of 2bBootStartup.S
136 // kill the cache = Disable bit 30 + 29 = CD + NW
137 // CD = Cache Disable (disable = 1)
138 // NW Not write through (disable = 1)
139 mov %cr0, %eax
140 orl $0x60000000, %eax
141 mov %eax, %cr0
142 wbinvd
143
144 // We clear the cr3 register
145 mov %eax, %eax
146 mov %eax, %cr3
The problem is that the part that claims to clear cr3 doesnt seem to actually do that. It writes cr0 to cr3 instead. What's the deal with that?