Kevin Lawton wrote:
> I know that you can force alignment on a power-of-2 boundary
> with ".p2align ...".  There must be an asm statement to
> make sure nothing else goes in the rest of the page(s).
> I'd be interested in knowing how to do this if anyone knows.

.align 12

Put that before and after the IDT and GDT and they're both
on a separate page.
 
> If so it would be beneficial to force the GDT & IDT into
> pages with no other Linux kernel data since we at least
> have to write-protect them.  TSS segments should be the
> same.

Uhhh... that would mean modifying the linux kernel.
Isn't it the goal of freemware to run code efficiently
*without* modification ?
 
Ramon

Reply via email to