The PS/2 Model 80 memory expansion board initialization now correctly sets up the RAM mappings;

The per-device log functions now all call pclog().
This commit is contained in:
OBattler
2017-12-05 23:35:35 +01:00
parent 5f8900e3cd
commit 772955bf59
17 changed files with 39 additions and 44 deletions

View File

@@ -726,13 +726,13 @@ static void
cdrom_log(const char *format, ...)
{
#ifdef ENABLE_CDROM_LOG
va_list ap;
if (cdrom_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -113,13 +113,13 @@ int ide_do_log = ENABLE_IDE_LOG;
static void ide_log(const char *format, ...)
{
#ifdef ENABLE_IDE_LOG
va_list ap;
if (ide_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -58,13 +58,13 @@ static void
hdd_image_log(const char *format, ...)
{
#ifdef ENABLE_HDD_LOG
va_list ap;
if (hdd_image_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -176,13 +176,13 @@ static void
fdc_log(const char *format, ...)
{
#ifdef ENABLE_FDC_LOG
va_list ap;
if (fdc_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -249,13 +249,13 @@ static void
d86f_log(const char *format, ...)
{
#ifdef ENABLE_D86F_LOG
va_list ap;
if (d86f_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -458,12 +458,12 @@ static void
kbdlog(const char *fmt, ...)
{
#ifdef ENABLE_KEYBOARD_AT_LOG
va_list ap;
if (keyboard_at_do_log) {
va_list ap;
va_start(ap, fmt);
vfprintf(stdlog, fmt, ap);
pclog(fmt, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -756,7 +756,7 @@ static void ps2_mca_board_model_80_type2_init(int is486)
if ((mem_size > 4096) && !is486)
{
/* Only 4 MB supported on planar, create a memory expansion card for the rest */
mem_mapping_set_addr(&ram_high_mapping, 0x100000, 0x800000);
mem_mapping_set_addr(&ram_high_mapping, 0x100000, 0x400000);
ps2.mem_pos_regs[0] = 0xff;
ps2.mem_pos_regs[1] = 0xfc;

View File

@@ -232,9 +232,8 @@ nelog(int lvl, const char *fmt, ...)
if (nic_do_log >= lvl) {
va_start(ap, fmt);
vfprintf(stdlog, fmt, ap);
pclog(fmt, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -63,13 +63,13 @@ static void
pcilog(const char *format, ...)
{
#ifdef ENABLE_PCI_LOG
va_list ap;
if (pci_do_log)
{
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -91,9 +91,8 @@ aha_log(const char *fmt, ...)
if (aha_do_log) {
va_start(ap, fmt);
vfprintf(stdlog, fmt, ap);
pclog(fmt, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -47,12 +47,12 @@ static void
scsi_bus_log(const char *format, ...)
{
#ifdef ENABLE_SCSI_BUS_LOG
va_list ap;
if (scsi_bus_do_log) {
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -250,9 +250,8 @@ buslogic_log(const char *format, ...)
if (buslogic_do_log) {
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -460,12 +460,12 @@ static void
scsi_hd_log(const char *format, ...)
{
#ifdef ENABLE_SCSI_DISK_LOG
va_list ap;
if (scsi_hd_do_log) {
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -156,9 +156,8 @@ ncr_log(const char *fmt, ...)
if (ncr5380_do_log) {
va_start(ap, fmt);
vfprintf(stdlog, fmt, ap);
pclog(fmt, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -81,9 +81,8 @@ x54x_log(const char *fmt, ...)
if (x54x_do_log) {
va_start(ap, fmt);
vfprintf(stdlog, fmt, ap);
pclog(fmt, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -134,12 +134,12 @@ static void
audiopci_log(const char *format, ...)
{
#ifdef ENABLE_AUDIOPCI_LOG
va_list ap;
if (audiopci_do_log) {
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}

View File

@@ -301,12 +301,12 @@ static void
emu8k_log(const char *format, ...)
{
#ifdef ENABLE_EMU8K_LOG
va_list ap;
if (emu8k_do_log) {
va_list ap;
va_start(ap, format);
vfprintf(stdlog, format, ap);
pclog(format, ap);
va_end(ap);
fflush(stdlog);
}
#endif
}