How to read past 8Mb boundary in early boot (i386 arch)?
At boot time, we seem map the first 8Mb by hand ... unfortunately my hardware puts the MPS tables at 511Mb. Reading this crashes us hard & fast ;-)
My current "fix" for this problem involves patching the firmware to put the MPS tables at 7Mb instead, which worked fine, but it's difficult to release patches for the firmware. I'm thinking it might be easier to hack Linux.
What I guess is needed is to read the pointer to the MPS tables, if pointer > 8Mb (well, plus the length of the table or an allowance) then copy it to 7Mb with some phys_memcopy routine. But it seems this means handcrafting a page table entry ... in which case, it might be easier to temporarily create a page table for the area pointed to, read it as normal, then tear it down again afterwards?
Any pointers much appreciated. Speak slowly, handcrafting page tables is mildly confusing (to me ;-)).
Thanks,
Martin.
Quoted 6 lines
What I guess is needed is to read the pointer to the MPS tables, if pointer > 8Mb (well, plus the length of the table or an allowance) then copy it to 7Mb with some
phys_memcopyroutine. But it seems this means handcrafting a page table entry ... in which case, it might be easier to temporarily create a page table for the area pointed to, read it as normal, then tear it down again afterwards?
Take a look at the apictable code added in recent -ac. They have precisely the same problems to worry about