Re: [Etherboot-developers] Comboot - Local Boot Support
Michael Brown <[email protected]> Tue, 23 Sep 2008 21:34:54 +0100
| Newsgroups | gmane.network.etherboot.user,gmane.network.etherboot.devel |
|---|---|
| Message-ID | <[email protected]> |
On Monday 22 September 2008 21:54:38 Daniel Verkamp wrote: > PS: This patch is also ready for review for mainline; CCing to > etherboot-developers (there is an equivalent function for PM instead > of RM, so I can write that one as well if desired before review). Thanks for implementing this. I'm a bit dubious about constructing executable code to implement the register loads; it feels as though there ought to be a neater way than this. Maybe have a static buffer in .text16, copy the syslinux_rm_regs struct to this buffer, and use __asm__ __volatile__ ( REAL_CODE ( "movl %cs:syslinux_rm_eax, %eax\n\t" .... ) ); to load up the register contents and jump? It should work out smaller than the current code, I think. You can probably optimise this further. Michael ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/