|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] [Firmware] TCG BIOS extensions for the Bochs BIO
On 12/12/06 3:25 pm, "Stefan Berger" <stefanb@xxxxxxxxxx> wrote:
Since I am running out of space in the BIOS segment now while converting the functions to 'C'...
Do you know of some good 'constructs' that can be left in the rombios as markers for linking the two pieces? I'd like to start with lifting up a single function into 32 bit space and then continuously put more up there, but get the linking right. Probably funneling everything through a single function and demultiplexing in 32 bit space is not what we would want.
I suppose HVMloader will have to carry a relocateable file (-fPIC) and be able to re-locate it to whatever memory could be reserved.
How about just have a table below 1MB, indexed by function id (where function ids also are statically allocated too). This table will be produced as part of the building and linking of the 32-bit extensions (it’ll probably be a C array of pointers, in its own data section which the linker will know to place at the very start of the extension ROM): it can then be patched into the rombios at compile time, or copied to a pre-decided address below 1MB by hvmloader at boot time.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|