mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
Update to cope with changes in registers.h
This commit is contained in:
@@ -13,20 +13,20 @@
|
||||
* the prefix requested.
|
||||
*
|
||||
*/
|
||||
void arch_main ( struct i386_all_regs *regs ) {
|
||||
void (*exit_path) ( struct i386_all_regs *regs );
|
||||
void arch_main ( struct i386_all_regs *ix86 ) {
|
||||
void (*exit_path) ( struct i386_all_regs *ix86 );
|
||||
|
||||
/* Determine exit path requested by prefix */
|
||||
exit_path = ( typeof ( exit_path ) ) regs->eax;
|
||||
exit_path = ( typeof ( exit_path ) ) ix86->regs.eax;
|
||||
|
||||
/* Call to main() */
|
||||
regs->eax = main();
|
||||
ix86->regs.eax = main();
|
||||
|
||||
if ( exit_path ) {
|
||||
/* Prefix requested that we use a particular function
|
||||
* as the exit path, so we call this function, which
|
||||
* must not return.
|
||||
*/
|
||||
exit_path ( regs );
|
||||
exit_path ( ix86 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user