Commit Graph

664 Commits

Author SHA1 Message Date
Bryce Denney
661e943f84 - added a new method to all GUIs called mouse_enabled_changed_specific,
which notifies them that the mouse_enabled bit has changed.  Now that
  mouse_enabled can be initialized or modified by parameter events in
  addition to GUI events, the guis must be prepared for it.  I have pasted
  empty method definitions into mouse_enabled_changed_specific for all
  guis except for X11, which I did the right way.  The implementation
  of this function must use the argument "val" rather than reading the
  parameter.
2001-06-23 03:23:19 +00:00
Bryce Denney
fba34be1e7 - added a new method to all GUIs called mouse_enabled_changed_specific,
which notifies them that the mouse_enabled bit has changed.  Now that
  mouse_enabled can be initialized or modified by parameter events in
  addition to GUI events, the guis must be prepared for it.  I have pasted
  empty method definitions into mouse_enabled_changed_specific for all
  guis except for X11, which I did the right way.  The implementation
  of this function must use the argument "val" rather than reading the
  parameter.
2001-06-23 03:18:14 +00:00
Bryce Denney
0bc41bc8ba - now the win32 gui updates bx_options.Omouse_enabled whenever it
goes in/out of mouse capture mode.  This is critical because
  bx_options.Omouse_enabled is used to control whether the mouse
  events are sent into the hardware queue or not (keyboard.cc).
  This is only a partial fix though, because changing the mouse
  enabled setting in the control panel has no effect on the gui.
2001-06-23 01:47:26 +00:00
Bryce Denney
f5a90eb9c6 - VC++ kept me honest about return values... 2001-06-22 13:37:08 +00:00
Bryce Denney
ef61b33db2 - moved win32 hacks into osdep.h so that gui/control.cc (which doesn't
include bochs.h) can use them too
2001-06-22 13:35:48 +00:00
Bryce Denney
071bcf34c9 - in NMAKE, the .cc.o line is not allowed to depend on anything.
I had added this in an attempt to get the compile dependencies right,
  but I think it didn't work anyway.
2001-06-22 13:20:29 +00:00
Bryce Denney
6c439676f1 - removed pit82c54.o and pit_wrap.o from default makefile.in temporarily
because they do not compile on VC++.
2001-06-22 13:18:27 +00:00
Bryce Denney
e0d36d3850 - added patch from Dieter Mittelmaier <dieter.mittelmaier@freenet.de>
that fixes problems on German keyboards.
2001-06-22 04:54:55 +00:00
Bryce Denney
3f31398123 - this is a tiny patch from bochs@sigint.cs.purdue.edu that makes
his ne2k (guest os=linux) talk to the network.
2001-06-22 04:21:04 +00:00
Bryce Denney
ff15f6024c - if created with cvs diff -u, you need -p0 not -p1 2001-06-22 04:13:50 +00:00
Bryce Denney
057dbf93db - Dave Spring's keyboard/mouse patches were applied 6/13, so I'm removing
them from the patches dir
2001-06-22 04:12:03 +00:00
Bryce Denney
bc2a982224 - applied the patch, so I removed it from patches subdir 2001-06-22 04:10:02 +00:00
Bryce Denney
b7cb1a5dde - applied patch from bochs@sigint.cs.purdue.edu. The comments are:
> The Linux 2.4.5 CD-ROM driver sends a READ_DISC_INFO command which caused
  > an "unrecognized ATAPI command" panic.  Looks like READ_DISC_INFO is only
  > recognized by CD-R and CD-RW drives, so I ignore it for now.  (I don't
  > know if ASC_INV_FIELD_IN_CMD_PACKET is the right code, but it shouldn't
  > matter to Linux anyway.)
2001-06-22 04:08:15 +00:00
Bryce Denney
a5fec96c0f - patch from bochs@sigint.cs.purdue.edu that causes command 0x51
to fail instead of panic or something.
2001-06-22 04:05:39 +00:00
Gregory Alexander
7f03177ed0 Started adding support for IP packets. 2001-06-21 23:12:47 +00:00
Bryce Denney
efa62838bb - add "-nocontrolpanel" command line option. 2001-06-21 21:24:05 +00:00
Bryce Denney
e7f7c0e5d6 - allow --disable-control-panel to work again. Now it actually compiles
and links in the control panel, but just doesn't call it up.
2001-06-21 20:50:30 +00:00
Bryce Denney
b1b56487c1 - turn the last few options into parameters (cmos, loader, random stuff) 2001-06-21 19:57:21 +00:00
Bryce Denney
0742e55fb1 - remove some debug option in parse_raw_bytes 2001-06-21 19:31:19 +00:00
Bryce Denney
ad3f4aaa8d - also disable macaddress when the NE2K is disabled 2001-06-21 19:30:14 +00:00
Bryce Denney
1bcdee2301 - add options to the string parameter class that allow it to deal with
raw hex bytes, for the MAC address.
2001-06-21 19:27:05 +00:00
Bryce Denney
8ca273ce73 - converted ne2k and sb16 to new style parameters and control panel,
except for MAC address of the ne2k, which is next.
2001-06-21 18:34:50 +00:00
Bryce Denney
5e893c4de5 - added two new bochsrc and control panel options: max_ips and
system_clock_sync
2001-06-21 17:14:41 +00:00
Bryce Denney
c1f2e6d8c4 - added two new bochsrc and control panel options: max_ips and
system_clock_sync
2001-06-21 16:59:56 +00:00
Bryce Denney
7916a2e1f5 - since "bx_options.cdromd.Oinserted" changed from bool to enum, I had
to change the parsing code to set BX_INSERTED and BX_EJECTED instead of
  0,1.
2001-06-21 15:22:26 +00:00
Bryce Denney
a6d74fd4b0 - oops Odev should have been Opath 2001-06-21 15:06:14 +00:00
Bryce Denney
a36d430306 - help message for --enable-control-panel was broken 2001-06-21 15:05:22 +00:00
Bryce Denney
80a7541fed - used grep to search for more instances of new bx_options problems that
I have introduced, and fixed a lot.
2001-06-21 14:56:43 +00:00
Bryce Denney
ee2ae90d79 - removed unused functions from siminterface.h and siminterface.cc.
These are obsolete because the bx_options have been changed to
  parameter structures.
2001-06-21 14:55:38 +00:00
Bryce Denney
63398b6ca4 - fixed parameter name change 2001-06-21 14:41:02 +00:00
Bryce Denney
e9d8fc0738 - fixed some bx_options name changes which were hiding inside
#ifdef LOWLEVEL_CDROM ... #endif
2001-06-21 14:40:01 +00:00
Bryce Denney
93f5f8e06b - now the memory options menu, interface menu, and disk menu in the
control panel are all implemented as bx_list_c, and look much like
  they did before.
- removed many hardcoded UI functions from control.cc, since the
  much more general "text_ask" methods have replaced them.
- add range checking on integer parameter values.  This exposed several
  cases where my initial value for an integer parameter was not in range.
- cleaned up behavior of get/set methods.  The get/set methods allow the
  handler to override the value that is returned/set, or perform side
  effects.
- the title parameter of a bx_list_c now defaults to the name.
- now bx_param_c fields that used to be private are protected instead
- removed references to bx_any
- moved definition of set_handler from siminterface.h to siminterface.cc.
  I was considering with doing a "set" of the old value when the
  handler is first installed, but that remains commented out.
- BX_BOOT_DISKA and BX_BOOT_DISKC are now 0,1 so that they can correspond
  with the values of a bx_param_enum_c.  For a while they were 0x00 and 0x80
  corresponding to the numbering convention of the bios, but it didn't
  really matter.
2001-06-21 14:37:55 +00:00
Gregory Alexander
2ee630f3fc Changed the format for eth_arpback to be more versatile for use with
UDP and TCP.
2001-06-21 01:45:17 +00:00
Bryce Denney
519d231cd4 - fixed naming problems in debugger introduced by my recent checkins 2001-06-21 01:44:32 +00:00
Bryce Denney
6c7d910459 - bought configure up to date with 1.23 of configure.in 2001-06-20 22:28:43 +00:00
Bryce Denney
ec0fbf18bc - convert nearly all bx_options to parameter form. All options that have
been converted into parameters temporarily have the letter "O" appended
  to their name.  I don't want to keep it this way, but it has helped
  in the conversion process because the compiler refuses to compile the
  old uses of the name.  Before I started using the "O" trick, there were
  many bugs like this:   if (bx_options.diskc.present) {...}
  This was legal with the new parameters, but it was testing whether the
  parameter structure had been created, instead of testing the value of
  the present parameter.  Renaming present to Opresent turns this into
  a compile error, which points out the incorrect use of the param.
- the "--disable-control-panel" no longer works, I'm afraid.  I can no
  longer support this and continue progress.
2001-06-20 14:01:39 +00:00
Gregory Alexander
ce339e0b78 Only respond to ARP packets. 2001-06-20 01:00:04 +00:00
Todd T.Fries
12985edb26 setprefix now uses a variable length name as a string for an argument 2001-06-19 21:36:09 +00:00
Todd T.Fries
7f18b0c181 serial enable step 1 2001-06-19 17:52:46 +00:00
Bryce Denney
4df55e3713 - merge TX and RX log into a single ne2k.raw and ne2k.txt. 2001-06-19 16:57:55 +00:00
Bryce Denney
8a61ebd6c3 - now rxlog and rxlog_txt are actually opened 2001-06-19 16:39:18 +00:00
Bryce Denney
427506cb87 - oops, renamed charbuf to rxbuf 2001-06-19 16:36:09 +00:00
Bryce Denney
c552310880 - oops, class_ptr renamed to this 2001-06-19 16:34:09 +00:00
Todd T.Fries
9b2060555e fwoop, forgot 2001-06-19 16:31:28 +00:00
Todd T.Fries
8bccacd84b split log stuff into a separate file 2001-06-19 16:25:41 +00:00
Bryce Denney
01d7de33ad - add logging code to eth_fbsd, similar to eth_null.cc 2001-06-19 16:09:13 +00:00
Todd T.Fries
5a53cd50ca fix compile problem with newer gcc (2.95.3 for me) 2001-06-19 14:55:34 +00:00
Bryce Denney
5dfc5cc7f6 - a few parameters didn't use get as they should. 2001-06-19 14:20:47 +00:00
Bryce Denney
a5693c93ab - the get method should not be able to modify the value
- added some comments around the get/set methods
2001-06-19 14:20:24 +00:00
Bryce Denney
f5272645a7 - the max of the loop should be BX_NOTIFY_MAX_ARGS, not NOTIFY_TYPE_STRING 2001-06-19 05:01:46 +00:00
Bryce Denney
8958d64f15 - fix another initialization problem that I believe was causing Greg's
crash in the mouse code.  The particular problem was that init_done
  was never initialized to zero, but it always turned out to be zero
  on my system.  This may explain why it worked for me but crashed
  for him.
2001-06-19 04:55:01 +00:00
Bryce Denney
c8b87d1f50 - fixed bug that caused mouse events to get through to bochs, even
when mouse was disabled.  It didn't warp the cursor so it was mostly
  just strange, not dangerous.
2001-06-19 04:42:35 +00:00
Bryce Denney
0dc38d6fb6 - applied this patch, so removed it from patches 2001-06-19 02:42:04 +00:00
Bryce Denney
7f242d27d2 - to allow compile on AIX, I removed parentheses around type name in
the "new" calls.  Changed this:
    new (bx_param_c*)[registry_alloc_size];
  to this:
    new bx_param_c*  [registry_alloc_size];
  in three places
2001-06-18 22:37:46 +00:00
Bryce Denney
181e2d9a45 - forgot to initialize bx_param_string_c::handler before. Thanks to Greg
for narrowing this down.
2001-06-18 22:34:03 +00:00
Bryce Denney
4be3406517 - turned printfs into BX_INFOs
- some line wraps, introduced between Calvin's disk and mine, removed
2001-06-18 21:14:00 +00:00
Bryce Denney
67970b2992 - Calvin Smith's cdrom patch (win32 specific) that allows Bochs to read
from a cdrom image file
2001-06-18 21:11:46 +00:00
Bryce Denney
7080fff6d7 - Calvin Smith patch to read raw ISO file as a cdrom 2001-06-18 20:55:07 +00:00
Bryce Denney
52e14e559d - now that some bx_options in main.cc have changed to bx_param_c, the
bochs debugger needed to be updated in the same way.  Instead of
  using "bx_options.rom.path" as a string, it's now
  bx_options.rom.path->getptr () to get the value of the parameter.
2001-06-18 19:01:49 +00:00
Bryce Denney
89de2c38aa - now the "memory options" menu is entirely defined using parameter
data structures, see bx_init_options in main.cc.  The implementation
  of this menu and all its choices is 17 lines long, see do_mem_options_menu
  in gui/control.cc.
2001-06-18 14:11:55 +00:00
Gregory Alexander
064f372576 Added a CRC at the end. Still doesn't work, but I
feel better about it in general.  Still need to work
on byte order issues in the CRC.
2001-06-18 13:13:52 +00:00
Gregory Alexander
e519ea4d44 Fixed compile problems in the CRC code, eth.cc, and eth_fbsd.cc.
(Some systems configure with eth_fbsd.cc but can't compile it.)
2001-06-17 23:08:27 +00:00
Gregory Alexander
7d9d0b6769 Added a packetmover that will eventually artificially respond to arps.
This can later be used as an example of how to artificially generate
packets to send to bochs.
2001-06-17 23:06:39 +00:00
Gregory Alexander
b94d9a6656 Added CRC code for use in calculating ethernet CRCs. 2001-06-17 22:39:57 +00:00
Bryce Denney
d0f1caa404 - turned rom address and vga rom path into bx_param_c parameters, so that
now the whole "Bochs Memory Options" menu uses new style parameters.
  The next step is to remove the hardcoded stuff that generates and runs
  this menu, and replace it with general menu building code.  All you should
  need to create this menu is the string "Bochs Memory Options", and the
  IDs of the bx_param_c options that should appear on the menu.  The
  bx_param_c structure for each parameter tell what type it is, how to
  display it, constraints on the value, what to do when the parameter
  changes.
2001-06-17 13:50:52 +00:00
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
8f5bb7419d - now megs, ips, mouse_enabled, vga_update_interval, and rom_path
are using Bryce's experimental parameter structures.
2001-06-16 19:29:59 +00:00
Bryce Denney
c5b355e4bd - add dependency rule so gui directory will actually recompile when
headers are changed
2001-06-16 19:29:07 +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
c8ae6c4aa9 - set logging prefix and type in the constructor 2001-06-16 04:27:22 +00:00
m2calabr
25a8b274ed Update to put on website automatically. 2001-06-16 00:23:33 +00:00
Bryce Denney
945b295c4d - gradually moving toward a set_parameter(param,val) style interface
instead of a set_vga_update_interval(val) style.
2001-06-15 23:52:34 +00:00
Bryce Denney
cee98e0033 - Add special case for power button so that it is always fatal.
a GUI panic.
2001-06-15 18:01:52 +00:00
Bryce Denney
d165585a77 - remove bx_dbg notation, replace with BX_DEBUG. 2001-06-15 12:32:15 +00:00
Bryce Denney
794ebad9cb - add lots of comments, also try to fix permission problems when installing
the tar
2001-06-15 00:40:42 +00:00
m2calabr
1612f04fdc Updated to new directory layout. 2001-06-15 00:31:01 +00:00
Bryce Denney
f7738ab93d - change structure so that each major section (user, development,
documentation) has its own directory.
2001-06-15 00:09:05 +00:00
m2calabr
4e988ff8e0 Added file to display all of the generated docs. 2001-06-14 21:56:02 +00:00
m2calabr
fbcd496e2d Completed FAQ section 2001-06-14 21:05:27 +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
0998d63de7 - add eth_null logging switch, currently on. 2001-06-13 22:28: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
2827019158 - boot options should say memory options instead! 2001-06-13 15:52:04 +00:00
Bryce Denney
6a34f364e6 - patch to work around bug
[ #429383 ] real mode seg limit: Bochs does #GP when Pentium does not
2001-06-13 15:00:10 +00:00
Bryce Denney
073dfe781d - compile with debugger has failed because it continued to call bx_bochs_init
when main.cc no longer had one.  Now compiling with debugger is working
  with the control panel.  To get the control panel, you have to click
  the snapshot button, and to get the debugger, you have to press ^C.
  These should be better integrated (maybe a control panel menu choice
  that jumps into the debugger and a debugger command that starts the
  runtime control panel...)
2001-06-13 13:36:12 +00:00
Bryce Denney
f7cf1325f7 - default for runtime menu was listed wrong 2001-06-13 13:31:53 +00:00
Bryce Denney
a356868d15 - Rob added the install_dlx target to match the other packages 2001-06-13 12:47:30 +00:00
Bryce Denney
3e4694c5b5 - changed "Boot" options menu to "Memory" Options, this seems like a
better name given what the options actually are.
- now runtime menu behaves more like the others: it updates its floppy
  disk image, etc.
- add "ask" as a legal choice for log action
- now runtime menu has both ways of editing log options
2001-06-13 08:14:49 +00:00
Bryce Denney
a11b18da3a - in int13_diskette_function, return the right error code (AH=3) if a
write fails because the floppy disk was write protected.  Before, the
  floppy.cc model was unable to return this error, but now it can.
2001-06-13 07:23:26 +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
0b89a1c74f - mouse patch by Dave Spring <dave@spring.org>, which adds wrap mode
and remote mode.
2001-06-13 05:13:59 +00:00
Bryce Denney
76896f6bcd *** empty log message *** 2001-06-13 05:05:27 +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
e2ac907997 - fixed some out of date text at top of changelog. Thanks Cliff. 2001-06-12 23:28:46 +00:00
Bryce Denney
aeb6b817aa *** empty log message *** 2001-06-12 22:44:55 +00:00
Bryce Denney
ca200bb8bf *** empty log message *** 2001-06-12 22:42:55 +00:00
Bryce Denney
d25ef37769 - copy CHANGES and README from the 1.2.1 final version 2001-06-12 21:56:59 +00:00
Bryce Denney
733c2f3a19 *** empty log message *** 2001-06-12 19:22:50 +00:00
Bryce Denney
27a4a0979f *** empty log message *** 2001-06-12 19:21:00 +00:00
Bryce Denney
4940c3bc63 - closer to a shell script, uses $VERSION variable to do substitution 2001-06-12 18:36:27 +00:00
Bryce Denney
49e4c66d22 - include changelog for 1.2.1 2001-06-12 18:31:12 +00:00
Bryce Denney
ca7914e7c7 - remove all curly brackets from makefiles! Before, I had done this by
just being careful what I wrote in the Makefile.in.  But now configure
  itself is substituting values for prefix and exec-prefix that include
  curly brackets, so being careful was no longer good enough.  If you
  run .conf.win32-vcpp it will remove them.
2001-06-12 17:26:17 +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
85372121ac - moved spec file to redhat subdir 2001-06-12 12:46:05 +00:00
Bryce Denney
3e35c4fae4 - moved the redhat RPM specfile from linux/bochs.rpmspec.template to
redhat/bochs.rpmspec.template
2001-06-12 12:42:06 +00:00
Bryce Denney
5bddd9dc5d - added debian build directory, contributed by
Rob Lemley <rjlemley@calypsoblue.org>
2001-06-12 12:40:30 +00:00
Bryce Denney
19bbda01ca - add test for struct timeval 2001-06-12 03:37:55 +00:00
Bryce Denney
e6c30ac6e9 - change multiline strings to use "line" "line2" syntax instead of
backslash at the end of each line
2001-06-11 21:03:05 +00:00
Bryce Denney
2d8fabda22 - clean up compiler warnings for gcc 2001-06-11 20:51:15 +00:00
Bryce Denney
42f03956f5 - removed string_list_t which was no longer used, and caused AIX compile
problems.
2001-06-11 20:48:12 +00:00
Bryce Denney
d238f77066 - clean up compiler warnings 2001-06-11 20:39:05 +00:00
Bryce Denney
7baabf07e6 - eliminated some compiler warnings 2001-06-11 20:27:23 +00:00
Bryce Denney
845b124240 - iodev.h should be ../iodev/iodev.h 2001-06-11 14:14:30 +00:00
Bryce Denney
19684ead48 - print the event type correctly in control panel (used to assume it was
a panic)
2001-06-11 14:07:54 +00:00
Bryce Denney
a56dedb386 - added a new log action "ask" which sends the log message to the control
panel.  It gives the user the option of continue this time, continue
  and never ask again for this type of log message, or die.
- the communication between control.cc and siminterface.cc is still
  somewhat crude.  I'm trying to implement it so that a network
  protocol based on this interface will be simple.  I'll get this cleaned
  up soon.
2001-06-11 14:03:35 +00:00
Bryce Denney
a97df5a8fa - add some #if's to compile the control panel stuff only when
BX_USE_CONTROL_PANEL is set.  I put the #if...#endif thing around
  the entire file in siminterface.cc and control.cc so that it's safe
  to compile them in either case.
2001-06-11 06:48:37 +00:00
Bryce Denney
b1161e3a6b - added BX_FLOPPY_LAST 2001-06-11 06:47:14 +00:00
Bryce Denney
985d4b7923 - implemented bx_write_configuration which, for the first time ever,
writes a bochsrc for you.
- since there were two options related to logging, I moved them both
  into a new struct called bx_log_options.  This follows the pattern
  used by other devices.
- in control.cc: removed option 1 from main menu, the one that said
  "Read options from bochsrc.txt."  This was identical to choosing
  the next option, "Read options from..." and only saved you one
  keystroke, so I removed it.
2001-06-11 06:35:18 +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
56b670a371 Added ssize_t to cygwin setup. Should compile out of
the box under cygwin.
2001-06-10 21:26:11 +00:00
m2calabr
56510e445d Updated docbook2html command in Makefile and added more FAQ enties in user.dbk 2001-06-10 06:50:01 +00:00
Bryce Denney
16af12a9b3 - a few revisions back, I somehow lost the BX_CPANEL_START_OPTS_DISK
section.  Now it is back.  (This fixes a segfault when you "Disk Options")
2001-06-10 05:30:27 +00:00
Gregory Alexander
34fd23a74f Changed behavior of snprintf under cygwin. 2001-06-10 04:00:06 +00:00
Gregory Alexander
43916eb6ad Added config.h and osdep.h to make this compile under cygwin. 2001-06-10 03:53:43 +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
dffe013ff8 - fix interface menu 2001-06-09 21:29:07 +00:00
Bryce Denney
8e7c2e42f3 - avoid crashes when rom path and vga rom path are null 2001-06-09 21:19:58 +00:00
Bryce Denney
af53a1158e - fixed boot menu in control panel 2001-06-09 21:12:16 +00:00
Bryce Denney
8b7fbca53e - more work on text-mode control panel. Now the control panel starts before
the simulation begins, to give you a chance to choose between bochsrcs,
  choose the boot disk, etc.
2001-06-09 20:01:12 +00:00
Bryce Denney
c8c5a94297 - added option of changing vga update interval on the fly. 2001-06-09 19:57:56 +00:00
m2calabr
de160ff62b First makefile for build the docbook manuals 2001-06-09 07:00:58 +00:00
m2calabr
be5ad6a7f4 First draft of the docbook manuals. 2001-06-09 06:02:39 +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
53a33ecfc6 - need public: before constructor 2001-06-08 18:02:54 +00:00
Bryce Denney
778697a788 - "dummy" is supposed to be the constructor, but when I renamed the
class I forgot to rename dummy.
2001-06-08 18:00:25 +00:00
Bryce Denney
f2af827a63 - add a layer of abstraction between the text-mode control panel in
gui/control.cc and the simulator.  Now all communication between
  the control panel and the rest of bochs goes through an object
  called bx_simulator_interface_c.
2001-06-08 07:20:07 +00:00
Bryce Denney
b26e2fb362 - even if panic is nonfatal, the exit button should still make it quit! 2001-06-08 03:07:51 +00:00
Bryce Denney
5b0481dd25 - use BX_ASSERT instead of assert 2001-06-07 20:52:26 +00:00
Bryce Denney
ebdfbbe36f - add first attempt at a text mode control panel 2001-06-07 20:42:00 +00:00
Bryce Denney
0cc0bb9c2c - add first attempt at a text mode control panel 2001-06-07 20:31:20 +00:00
Bryce Denney
f1be61c30b - compiled bioses for rombios.c revision 1.13 2001-06-07 18:08:52 +00:00
Bryce Denney
7f14cc625e - This should fix the bug
[ #430472 ] DOS HIMEM "A20 line" error
  All I've done is moved the call to print_bios_banner later in the
  boot process, and the A20 problem goes away.  I wanted it early so
  that it would get printed before any panic or halt could happen.
  Oh well.
2001-06-07 18:03:29 +00:00
Bryce Denney
c681b99d39 - remove --enable-external-device-models
- remove --enable-external-cpu-memory
- Neither of these options were compiling anymore, and Kevin suggested:
  > My advice would be to scrap both of these options.  I hadn't used
  > those in some time.  The way to implement 'external' devices
  > would be via a modular plugin architecture, which both bochs
  > and plex86 should implement.
2001-06-07 16:00:58 +00:00
Bryce Denney
8195f1d252 - added debugger command: show "vga" which forces a vga update.
I haven't yet seen a case where this makes a useful difference, but
  it doesn't cause problems either.
2001-06-07 15:40:11 +00:00
Bryce Denney
ef907186ef - add messages about external device models and external cpu memory,
no change of any substance here!
2001-06-07 14:11:58 +00:00
Bryce Denney
8ab8c40108 - fix bugs in SMP structure
- this file now corresponds with rombios.c version 1.12.
2001-06-07 13:35:42 +00:00
Bryce Denney
08fad0325e - fixed the entry count for 2 and 4 processor MP structure, and the
checksum.
- at the same time, I removed my initials from the OEM id field and changed
  it to "BOCHSCPU"  :)
2001-06-07 13:33:32 +00:00
Bryce Denney
981fb8f55b - fixed bug introduced in 1.6 which caused MP structures to be overwritten
by BCC generated data.  This was pointed out by Tom Lindström
  <tom@debet.shh.fi>, and I took his suggestion of moving the MP structures
  to the end of the file.
2001-06-07 12:29:22 +00:00
Bryce Denney
e8d89eb7eb - allow readline to be disabled if you want, as in
configure --enable-debugger --disable-readline
2001-06-07 02:51:20 +00:00
Bryce Denney
017691abdc - this is the equivalent of main.cc revision 1.34 2001-06-07 02:21:55 +00:00
Bryce Denney
c5f59a6c27 - don't specify the names of the man pages. This makes it simpler since
I don't have to list them, and also apparantly fixes a mysterious problem
  which occurred when Anders Nielsen was trying to build the RPM for
  PPC: his rpm appears to gzip the man pages automatically, and then
  complains that /usr/man/man1/bochs.1 is not found!
2001-06-06 22:46:42 +00:00
Bryce Denney
7ddd5677f5 - increase MAX_LOGFNS since we run out of them on an SMP simulation with
4 processors
2001-06-06 18:27:45 +00:00
Bryce Denney
228180c40b - sb16 patch that fixes
[ #425640 ] sb16 assumes fpos_t is long int
  needs to be tested still
2001-06-06 14:01:01 +00:00
Bryce Denney
d282407d8c - I made some changes that improve the "make rpm" and install process
- start using autoconf/configure's standard of prefix, exec_prefix, bindir,
  mandir to control where make install puts things
- added script install-x11-fonts
- make install no longer tries to install DLXlinux (since not everyone will
  want it).  Now you must do make install_dlx if you want it.
- renamed erase_install to uninstall
- in RPM spec file:
  - run .conf.linux instead of .conf.linux-x86.  This is just a name change.
  - build directory hierarchy in the buildroot
  - patch up broken symbolic links in buildroot (ugly)
  - run font install script in  %post
  - clean up dlxlinux directory in %preun to avoid warning about not
    removing /usr/local/bochs/dlxlinux/bochsout.txt
  - remove /usr/local/bochs if nothing left in it
2001-06-06 13:57:24 +00:00
Bryce Denney
d647c9fc10 - renamed to .conf.linux, since it can be used for other linux platforms 2001-06-06 13:40:48 +00:00
Bryce Denney
34222b4b3b - add $CONFIGURE_ARGS to the configure line so that you can request other
args to go there (used in RPM building)
2001-06-06 13:40:02 +00:00
Bryce Denney
565fa8ea8e - another speed boost: when not using SMP, use
BX_CPU_C bx_cpu;
     BX_MEM_C bx_mem;
  and when more than one processor, use
     BX_CPU_C    *bx_cpu_array[BX_SMP_PROCESSORS];
     BX_MEM_C    *bx_mem_array[BX_ADDRESS_SPACES];
  The changeover is controlled by BX_SMP_PROCESSORS, but there are only
  a few code changes since nearly all code uses the BX_CPU(n) and BX_MEM(n)
  macros.
- This turns out to make a 10% speed difference!  With this revision,
  the CVS version now gets 95% of the performance of the 3/25/2000
  snapshot, which I've been using as my baseline.
2001-06-05 17:35:08 +00:00
Bryce Denney
b01b9109a6 - the SMP merge has reduced performance of even one processor, so this
is the first attempt to regain the performance of pre-SMP bochs
  (1.1.2).  When simulating only one processor, stay in cpu_loop forever
  as pre-SMP versions did.  The overhead of returning from cpu_loop over
  and over was slowing us down.
2001-06-05 15:56:19 +00:00
Bryce Denney
63dab502f6 - add keyboard 2001-06-04 23:06:33 +00:00
Bryce Denney
6d9113d4e1 - add top level link to debugger and cosimulation 2001-06-04 23:02:36 +00:00
Bryce Denney
bf13589cb1 - replace broken link with good one 2001-06-04 23:02:20 +00:00
Bryce Denney
52e0d4178c - fix typo 2001-06-04 16:36:21 +00:00
Bryce Denney
477b71def7 - don't bother with $Id$ in the bximage output anymore, it's not that
important.
2001-06-04 04:28:16 +00:00
Bryce Denney
c9d5ee1dfc - final update for 1.2 branch 2001-06-04 04:27:22 +00:00
Bryce Denney
4b323cd40d - sync up with 1.2 branch (to 1.17.2.17) 2001-06-04 04:26:56 +00:00
Bryce Denney
4fd165131b - sync up with 1.2 final 2001-06-04 04:23:39 +00:00
Bryce Denney
075bc4319b - replaced with 2.40 2001-06-04 03:56:26 +00:00
Bryce Denney
9bda2b4491 - just remove the $Id$ tag from the bximage output, because it will always
be changing, unless I figure out how to put -kb on it.
2001-06-04 03:44:45 +00:00
Bryce Denney
46f3c6ed68 - add man pages 2001-06-04 03:37:54 +00:00
Bryce Denney
8448f3cda1 - mention man pages too 2001-06-04 03:34:32 +00:00
Bryce Denney
8c57c0c6cf - disable mouse capture on startup, to avoid confusing the heck out of
new users.
2001-06-04 02:45:28 +00:00
Bryce Denney
f41b050fd9 - update for 1.2 release 2001-06-03 23:09:11 +00:00
Bryce Denney
d2a6e40367 - Bryce got picky about spaces here and there 2001-06-03 22:49:13 +00:00
Timothy R.Butler
aa982d8e7e Updated formatting to work better under man 2.3.0 (SuSE 7.1), and
hopefully other versions of man. I also added reference to Bryce's new
Linux getting started guide.
2001-06-03 22:35:07 +00:00
Bryce Denney
2c66148a10 - remove some windows references, put </a> at the end of anchor tags
such as <a name="bla">
2001-06-03 20:55:28 +00:00
Timothy R.Butler
91cdfc0c87 Simplified argument usage information, reformatted doc. 2001-06-03 19:50:33 +00:00
Bryce Denney
64ebca73f7 - don't report version number for bximage 2001-06-03 15:06:04 +00:00
Bryce Denney
cde6e5ba53 - mostly-minor tweaks by Bryce
- all bochsrc option names changed to lower case, since the uppercase
  versions will not be recognized.
- BIOS is now named BIOS-bochs-latest instead of by date.
2001-06-03 14:37:40 +00:00
Bryce Denney
949a8e6557 - Bochs man pages from Tim Butler 2001-06-03 13:18:20 +00:00
Bryce Denney
e056bfbc12 - first draft, based on win32 with changes to make it linux specific 2001-06-03 04:54:01 +00:00
Bryce Denney
81c433cb03 - move to CHANGES, to be consistent with README, COPYING 2001-06-02 08:20:55 +00:00
Bryce Denney
d06f61b197 - update message to point to DOC-win32.htm 2001-06-02 07:44:13 +00:00
Bryce Denney
a0924ee9e6 - should say 10 minutes, not 5 2001-06-02 07:43:25 +00:00
Bryce Denney
421d5f6845 - install bochs binary in /usr/local/bochs/@VERSION@ instead of bin
- add symlink "latest"
2001-06-02 07:42:37 +00:00
Bryce Denney
433f9c3d98 - leave @VERSION@ instead of an actual version number 2001-06-02 07:41:03 +00:00
Bryce Denney
27c0ac42ad - sync up with 1.2 branch 2001-06-02 07:40:06 +00:00
Bryce Denney
93271443b7 - sync up with 1.2 branch (revs 1.17.2.7 to 1.17.2.11) 2001-06-02 07:37:38 +00:00
Bryce Denney
02bb79fe79 - no longer needed, RPM takes care of it 2001-06-02 04:10:14 +00:00
Bryce Denney
3c9067facf - crash configure if X windows gui selected but no X windows libraries
are found
2001-06-02 03:11:51 +00:00
Bryce Denney
07b92bf6a5 - first test if -pthread arg to compiler causes pthread library to work.
If so, use it.  Otherwise, check if -lpthread works.  If so, us it.
  Otherwise, print an error and fail.
2001-06-02 03:07:28 +00:00
Bryce Denney
86dc440418 - fixed type, BX_EROR -> BX_ERROR 2001-06-02 03:01:01 +00:00
Bryce Denney
8c538a62d2 - added missing LOG_THIS 2001-06-02 02:49:14 +00:00
Bryce Denney
ea4ac33e96 - cleaned up, added some more detail about tools 2001-06-02 00:45:13 +00:00
Bryce Denney
e6496cfce9 - typecast arg3 of pthread_create to the right kind of function pointer 2001-06-01 21:53:18 +00:00
Bryce Denney
834bcc25da - added linux mouse patches from "Robb Main" <genedyne@aci.on.ca>.
patch.linux-mouse can be applied to current CVS
  patch.linux-mouse-for-1.1.2 is what Robb sent originally, which can
    be applied to version 1.1.2 (bugfix3)
2001-06-01 18:53:17 +00:00
Bryce Denney
6f6f9d79f0 - added tons of content 2001-06-01 08:29:17 +00:00
Bryce Denney
4d3f592af4 - first draft of windows specific doc 2001-06-01 06:32:02 +00:00
Bryce Denney
8c914f5c1f - fixed so that I could compile bximage.exe in win32 2001-06-01 05:58:46 +00:00
Bryce Denney
522007e662 - I guess strcasecmp is specific to glib or something, it didn't work in
win32.
2001-06-01 05:45:55 +00:00
Bryce Denney
2ffb3b5d01 - compile bximage too 2001-06-01 05:21:25 +00:00
Bryce Denney
10ae93c1d6 - gcc -Wall made me a little more honest! Added missing includes,
removed unused variables, initialized things that I had missed before,
  added a missing arg to sprintf, and a return at the end of int main.
  That's all.
2001-06-01 05:11:45 +00:00
Bryce Denney
ad43b74b4a - change to $Id$ in the print_banner 2001-06-01 04:28:14 +00:00
Bryce Denney
ee4897e645 - fixed upper limit of hard disk size. the limit is cylinders<65536. 2001-06-01 04:24:12 +00:00
Bryce Denney
a6dd514493 - rename mkimg2 to bximage 2001-06-01 04:20:26 +00:00
Bryce Denney
cc9e6ee3bc - now it asks before trashing an old image file
- finished code that prints 1 dot per megabyte
- added rcs header
2001-06-01 04:07:21 +00:00
Bryce Denney
df86e3266d - partially complete tool for creating empty disk images of the right size 2001-06-01 03:30:40 +00:00
Bryce Denney
a134d9fb86 - print messages in log on boot failure 2001-05-31 20:37:03 +00:00
Bryce Denney
954e3377b4 - print messages on boot failure 2001-05-31 20:36:05 +00:00
Bryce Denney
144fb07742 - add diskd, commented out 2001-05-31 19:56:27 +00:00
Bryce Denney
78472700f1 - added note about just how old this doc really is 2001-05-31 18:41:45 +00:00
Bryce Denney
36d6a6527e - update bios again, but this time move to a standard filename
BIOS-bochs-latest.  Different versions of the BIOS can now be
  distinguished because they print the RCS ID into the log file
  using bios_printf.
2001-05-31 15:30:30 +00:00
Bryce Denney
b198e58c72 - removed panic that I had used in debugging. Oops. 2001-05-31 15:23:10 +00:00
Bryce Denney
5ac0adc67d - do not HALT if hard drives cannot be found 2001-05-31 15:21:25 +00:00
Bryce Denney
4ffec74a29 - only attempt to compile eth_fbsd.o if net/bpf.h is found. 2001-05-31 15:19:32 +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
dd3ec034c7 - updated instructions for compiling under win32 2001-05-30 18:24:48 +00:00
Bryce Denney
a765644750 - removed extra paren that caused SHOW_IPS to fail 2001-05-30 13:23:33 +00:00
Bryce Denney
3a4c16b2fe - point to rom image from 0529 2001-05-29 14:45:18 +00:00
Bryce Denney
a37950bf5a - clean up rombios.txt when done 2001-05-29 14:35:45 +00:00
Bryce Denney
77a528dbb6 - fixed bugs in HALT macro, so that now it triggers a BX_PANIC message
in iodev/unmapped.cc.
2001-05-29 14:33:51 +00:00
Bryce Denney
d3bc402352 - corresponds to rombios.c revision 1.7 (fixed up HALT macro) 2001-05-29 14:32:41 +00:00
Bryce Denney
f278500be5 - check for null CPU pointer on exit 2001-05-29 14:28:38 +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
da7afca875 - include vga.pcf in the RPM distribution 2001-05-29 13:06:00 +00:00
Bryce Denney
43c79a0c07 - added missing BX_PCI_THIS in several places 2001-05-29 07:38:22 +00:00
Bryce Denney
fa6e0432a5 - fix link to 1.2.pre1 2001-05-29 04:36:32 +00:00
Bryce Denney
66571b538c - add missing LOG_THIS on main branch 2001-05-26 05:55:44 +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
Bryce Denney
89d83d5b81 - release should really default to 1 2001-05-25 16:58:48 +00:00
Todd T.Fries
0b613932ac remove redundant 2001-05-25 15:06:45 +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
Todd T.Fries
622031500e reset callback now implemented 2001-05-25 14:21:46 +00:00
Bryce Denney
5f0e754abc - point to new ROM image 2001-05-25 14:03:10 +00:00
Bryce Denney
bf5a0bcef5 - updated for 1.2-pre1 2001-05-25 14:02:49 +00:00
Bryce Denney
aed721bc62 - update for 1.2-pre1 2001-05-25 14:02:16 +00:00
Bryce Denney
74db540eca - use defined labels for log actions, rather than hardcoded numbers 2001-05-25 14:01:28 +00:00
Bryce Denney
47c7a92efc *** empty log message *** 2001-05-25 13:59:01 +00:00