Update to cope with changes in registers.h

This commit is contained in:
Michael Brown
2005-05-20 11:23:51 +00:00
parent 5231b858c9
commit d3dec7c331
9 changed files with 44 additions and 45 deletions

View File

@@ -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 );
}
}