Beginnings of CONFIG_BIOS support
ported from machine&kb
This commit is contained in:
@@ -145,12 +145,19 @@ int
|
||||
machine_available(int m)
|
||||
{
|
||||
int ret;
|
||||
device_t *d = (device_t *) machine_getdevice(m);
|
||||
|
||||
bios_only = 1;
|
||||
ret = machine_init_ex(m);
|
||||
|
||||
ret = device_available(d);
|
||||
/* Do not check via machine_init_ex() if the device is not NULL and
|
||||
it has a CONFIG_BIOS field. */
|
||||
if ((d == NULL) || (ret != -1))
|
||||
ret = machine_init_ex(m);
|
||||
|
||||
bios_only = 0;
|
||||
return ret;
|
||||
|
||||
return !!ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user