Hi Anthony, I spot a bug and few dead code in the extboot option rom. Perhaps the reason they are there is because less people want to look at assembly code, and it looks indeed scary.
So I decided to rewrite it in C, using .code16gcc directive. Some advantages: - C code is easier to understand, find bugs, maintain and hack (so we can add more features in the future) - The binary image is same: 1.5K. The actual code size is also about the same size: around 1.2K. (gcc can optimize really well) See the code in attachment. The new code consists of a very small assembly file boot.S, which merely interfaces with the C code. "signrom" is modified to work with the new binary image. - To compile code, just run "make" - To save the original /usr/share/qemu/extboot.bin (to /usr/share/qemu/extboot.bin.org), just run "make save" - Then "make install" to install the new extboot.bin into /usr/share/qemu/ I succesfully compile and run this option rom with virtio from 2.6.25-rc8 on Ubuntu 7.10. Any comment? Many thanks, Quynh
extboot-C.tbz2
Description: application/bzip-compressed-tar
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel