Ramon van Handel wrote:
> 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
Ok, thanks for the info.
> 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 ?
Yes. All I'm saying here is that, if there's something
we can do to make it even better and it's a very small
mod, then we might as well feed it back into the kernel
source. But I agree, we should be able to run things
as well as possible without modification.
It might not even make a difference. If it does, maybe
we can get some bragging rights to our 4 lines of contribution
to the Linux kernel. :^)
-Kevin