On 11/25/2010 08:35 AM, Kevin O'Connor wrote:
This is due to the hierarchical nature of the
functions. Also, while
for example B calls A, B fills a data structure (on the stack) that
it passes to A. A of course can get the same data structure from the
user calling the interrupt interface. So, by switching to 32 bit
mode and converting to 32 bit pointers early I could previously
avoid a lot of headaches with the segment registers in 16 bit mode
and reading the data from wherever they may be. Would you have any
concerns about switching to 32 bit mode early, so that the interrupt
handler and anything subsequent runs in 32 bit mode?
I can't say for sure what
will make sense without seeing the code
first, but it sounds okay to me.
I posted the TPM patches yesterday on the Qemu
mailing list. It may take
some time until TPM functionality becomes available in Qemu, but would
you be willing to review the BIOS extensions even without being able to
run them (for some time)? It's quite a chunk...