Update to cope with changes in registers.h
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
#include "bochs.h"
|
||||
#include "realmode.h"
|
||||
|
||||
/*
|
||||
* The "exit via INT 19" exit path. INT 19 is the old (pre-BBS) "boot
|
||||
* system" interrupt.
|
||||
/**
|
||||
* The "exit via INT 19" exit path.
|
||||
*
|
||||
* INT 19 is the old (pre-BBS) "boot system" interrupt. It is
|
||||
* conventionally used now to return from a failed boot from floppy
|
||||
* disk.
|
||||
*
|
||||
* @bug Not yet implemented
|
||||
*
|
||||
*/
|
||||
|
||||
void exit_via_int19 ( struct real_mode_regs *rm_regs ) {
|
||||
void exit_via_int19 ( struct i386_all_regs *ix86 ) {
|
||||
bochsbp();
|
||||
/* Placeholder */
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* would cause linker symbol pollution.
|
||||
*
|
||||
*/
|
||||
void i386_select_isapnp_device ( struct i386_all_regs *regs ) {
|
||||
void i386_select_isapnp_device ( struct i386_all_regs *ix86 ) {
|
||||
/*
|
||||
* PnP BIOS passes card select number in %bx and read port
|
||||
* address in %dx.
|
||||
@@ -23,10 +23,10 @@ void i386_select_isapnp_device ( struct i386_all_regs *regs ) {
|
||||
} u;
|
||||
|
||||
/* Set ISAPnP read port */
|
||||
isapnp_read_port = regs->dx;
|
||||
isapnp_read_port = ix86->regs.dx;
|
||||
|
||||
/* Select ISAPnP bus and specified CSN as first boot device */
|
||||
memset ( &u, 0, sizeof ( u ) );
|
||||
u.isapnp_loc.csn = regs->bx;
|
||||
u.isapnp_loc.csn = ix86->regs.bx;
|
||||
select_device ( &dev, &isapnp_driver, &u.bus_loc );
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* that would cause linker symbol pollution.
|
||||
*
|
||||
*/
|
||||
void i386_select_pci_device ( struct i386_all_regs *regs ) {
|
||||
void i386_select_pci_device ( struct i386_all_regs *ix86 ) {
|
||||
/*
|
||||
* PCI BIOS passes busdevfn in %ax
|
||||
*
|
||||
@@ -23,6 +23,6 @@ void i386_select_pci_device ( struct i386_all_regs *regs ) {
|
||||
|
||||
/* Select PCI bus and specified busdevfn as first boot device */
|
||||
memset ( &u, 0, sizeof ( u ) );
|
||||
u.pci_loc.busdevfn = regs->ax;
|
||||
u.pci_loc.busdevfn = ix86->regs.ax;
|
||||
select_device ( &dev, &pci_driver, &u.bus_loc );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user