Commit Graph

77 Commits

Author SHA1 Message Date
Bryce Denney
c3d88c5924 - now ips, mouse_enabled, vga_update_interval, and rom_path are
declared as bx_param_c * types in the bx_options structure.  They are
  initialized in main.cc (bx_init_options) with default values.
  Access to parameters of this type should always be like this:
    bx_options.mouse_enabled->get ();
    bx_options.mouse_enabled->set (newval);
  Eventually I will be transferring all options to this format.
2001-06-16 23:08:32 +00:00
Bryce Denney
1ae66aeeb6 - added empty stubs for serial_raw. To try it out, define USE_RAW_SERIAL
in config.h and add serial_raw.o to the makefile in the iodev directory.
2001-06-16 19:27:41 +00:00
Bryce Denney
3532885cf2 - set the prefix and type in the constructor 2001-06-16 04:30:17 +00:00
Bryce Denney
d165585a77 - remove bx_dbg notation, replace with BX_DEBUG. 2001-06-15 12:32:15 +00:00
Todd T.Fries
9adacd37d5 while its not elegant, it works to remove the trailing '\n' 2001-06-14 14:14:17 +00:00
Bryce Denney
2dfc559057 - add the beginnings of linux support
- add logging code to eth_null which is enabled by BX_ETH_NULL_LOGGING in
  config.h.
2001-06-13 22:27:52 +00:00
Todd T.Fries
235f7867ec bios prints should not have \n in them 2001-06-13 17:18:47 +00:00
Todd T.Fries
a01a26b399 remove \n 2001-06-13 17:01:36 +00:00
Todd T.Fries
61d13559e9 tweaks here and there, show ne2k mac, shorten BX_ messages by removing redundant strings, etc 2001-06-13 16:53:58 +00:00
Bryce Denney
a66bf0edd3 - oops, the previous revision of floppy.cc needs floppy_xfer to return
void, not Bit32u.  Fixed in this revision.
2001-06-13 07:08:04 +00:00
Bryce Denney
7a095b60e4 - now floppy controller returns a proper error response if you try to write
a read-only disk image.  For systems such as DOS that actually use the
  BIOS services, it was also necessary to add code in int13_diskette_function
  to recognize a write-protected error and return the correct error
  status code (AH=3, Carry Set).
2001-06-13 07:06:10 +00:00
Bryce Denney
2771ed7c0b - set prefix and type for unmapped 2001-06-13 01:46:08 +00:00
Bryce Denney
6ecd58beb9 - NOT A COMPLETE FIX!
now floppy.cc no longer crashes if you try to open a write-protected
  disk or read-only disk image.  Instead, it tries a second time to
  open the image read-only and only panics if this also fails.  If the
  image is opened read-only, a readonly flag is set
  (bx_floppy.s.media[drive].read_only).  If you try to write the floppy
  when this flag is set, the write silently fails except for some messages
  into the log.  Instead of failing silently we should learn what the
  floppy controller would really do in this situation and emulate it.
2001-06-13 00:30:34 +00:00
Gregory Alexander
d243a4d6cd Updated pit, fixed a compile problem under AIX. 2001-06-12 23:55:53 +00:00
Bryce Denney
f822257511 - there were cases where BX_APIC_SUPPORT were used and others where
BX_SUPPORT_APIC were used.  To follow the pattern used by other
  names like this, I changed them all to BX_SUPPORT_APIC.
  Thanks to Tom Lindström for chasing this down!
2001-06-12 13:07:43 +00:00
Bryce Denney
17f2be70b9 - removed LOG_THIS from header file, since it was already defined in the
.cc files
2001-06-11 06:21:07 +00:00
Gregory Alexander
3c2384b270 Include new PIT .h file. 2001-06-11 03:11:40 +00:00
Gregory Alexander
32f50ddc6d Added hooks for new PIT. Now compiles it into bochs binary
but doesn't use it yet.  Still needs improvement before it
becomes the default bochs PIT.
2001-06-11 03:09:40 +00:00
Gregory Alexander
3a58858042 Added a .h file for the pit. 2001-06-11 00:16:24 +00:00
Gregory Alexander
af1b064007 Added a few access functions to pit, also changed
the constructor to an init function so that it can
be called at any time.
2001-06-10 23:53:09 +00:00
Gregory Alexander
279acf5e46 Fixed a problem with some systems not having struct timeval.
This is a temporary fix, we really need something in autoconf.
2001-06-10 01:35:10 +00:00
Bryce Denney
c8c5a94297 - added option of changing vga update interval on the fly. 2001-06-09 19:57:56 +00:00
Bryce Denney
5e4265ba8a - applied patch.sb16-ftell. Instead of using fgetpos which returns
an fpos_t, use ftell which returns an int.  Without the patch,
  Bochs gets an fpos_t and assumes it is an integer type, but
  on some systems (like linux with newer glibc libraries) this
  assumption is wrong.  Malte Cornils <malte@cornils.net> first
  reported this bug, and he warned me that ftell may not be portable
  to some platforms which treat binary and ascii streams differently.
  I haven't found any alternative yet.
2001-06-09 01:30:20 +00:00
Bryce Denney
5b0481dd25 - use BX_ASSERT instead of assert 2001-06-07 20:52:26 +00:00
Bryce Denney
31d8997bf8 - applied extended keyboard patch by Dave Poirier <eks@void-core.2y.net> 2001-05-31 14:27:37 +00:00
Todd T.Fries
2bbb1ef8eb strip '\n' from BX_{INFO,DEBUG,ERROR,PANIC}
don't need it, moved the output of it into the general io functions.
saves space, as well as removes the confusing output if a '\n' is left off
2001-05-30 18:56:02 +00:00
Bryce Denney
071589ab79 - now I/O writes to 0x400 (panic_port) actually cause a BX_PANIC message
- now the HALT macro in rombios.c writes to panic port but does not actually
  execute a "hlt" instruction.  This allows the .bochsrc to control
  whether the BIOS panic is fatal or not.
2001-05-29 14:28:14 +00:00
Bryce Denney
43c79a0c07 - added missing BX_PCI_THIS in several places 2001-05-29 07:38:22 +00:00
Todd T.Fries
e291dd17d4 demote BX_INFO to BX_ERROR 2001-05-25 22:17:51 +00:00
Todd T.Fries
9ebd237408 more output cleanup 2001-05-25 18:44:38 +00:00
Todd T.Fries
34a4fa7c67 demote INFO/PANIC to DEBUG to silence a number of w98 verbosity by default 2001-05-25 14:25:25 +00:00
Bryce Denney
8d3c28d3de - added comment clarifying that Greg wrote it, and that it's not linked
with the rest of Bochs yet.
2001-05-25 13:11:52 +00:00
Bryce Denney
ccee158458 - changed format of log functions to use BX_ERROR instead of errmsg 2001-05-24 22:20:41 +00:00
Bryce Denney
eacb6e5ccb - this is Greg Alexander's PIT patch from sourceforge, from
2001-05-23 14:35  (maybe EDT?)
2001-05-24 21:44:14 +00:00
Bryce Denney
d9d312351e - forgot to add some returns last time 2001-05-24 18:50:59 +00:00
Bryce Denney
5d77c96ef0 - added BX_DEBUG messages here and there to help debug the ne2k code 2001-05-24 18:31:36 +00:00
Todd T.Fries
aa8081aff3 cleanup output more 2001-05-24 14:08:54 +00:00
Todd T.Fries
c8ef550530 irq9, not irq10, thanks angelos@openbsd.org 2001-05-23 19:47:14 +00:00
Todd T.Fries
cd01453c9d cleanup output 2001-05-23 19:36:55 +00:00
Todd T.Fries
70099281ff tweaks and if(bx_dbg.foo) BX_INFO -> BX_DEBUG .. 2001-05-23 14:31:21 +00:00
Bryce Denney
af4ccaae3e - added I/O APIC and local APICs
- for more details, see BRANCH-smp-bochs
2001-05-23 07:48:11 +00:00
Bryce Denney
7f5f5e24ce - g++ gave warning about "class eth_pktmover_c has virtual functions but
a non-virtual destructor" so I gave it a virtual destructor which is
  empty!
2001-05-23 02:44:52 +00:00
Bryce Denney
42bc8f4f2c - extern not needed anymore 2001-05-23 02:42:55 +00:00
Todd T.Fries
12457577c1 ne2k from angelos@OpenBSD.org 2001-05-23 00:46:47 +00:00
Bryce Denney
d7d75a7bdc - changed some messages from BX_INFO to BX_DEBUG so that they wouldn't
show up by default.
2001-05-22 18:48:31 +00:00
Bryce Denney
a9b282ece5 - BX_WARN doesn't exist any more! Change them all to BX_INFO. 2001-05-20 03:27:05 +00:00
Bryce Denney
dc95af092a - fixed missing close paren in BX_PANIC call 2001-05-20 03:18:10 +00:00
Bryce Denney
db087c7f6a - try to avoid printing null pointers if midifil, wavefile, logfile
are not defined.  This happens if SB16 is configured but then does
  not appear in the .bochsrc.
2001-05-17 20:58:31 +00:00
Bryce Denney
416f52f3e8 - comment out 2 lines with IXOFF and TCSAFLUSH for FreeBSD, at request of
Maxim Sobolev who sent me patches.
2001-05-17 06:44:06 +00:00
Todd T.Fries
7ad6e82e00 merge in submission from freebsd ports 2001-05-16 17:39:07 +00:00