Commit Graph

707 Commits

Author SHA1 Message Date
Bryce Denney
b966bf0bab - fix expression that required implicit bool->int which caused havoc on
vc++.  Now it says (boolean expression)?1:0 instead.
2001-08-30 02:02:10 +00:00
Todd T.Fries
cd9733391b AtheOS triggers this, move to debug 2001-08-24 21:02:37 +00:00
Gregory Alexander
03a2ae5bbd Minor theoretical fix for X. I don't see any benefit, but
it may just be that there are other problems afoot.


 Modified Files:
 	x.cc
2001-08-24 13:50:02 +00:00
Gregory Alexander
59d9dbdd98 Another mouse fix. This one changes the model a bit to
act more like a real system.  It has some problems, but
is MUCH better than it was.


 Modified Files:
 	keyboard.cc keyboard.h
2001-08-24 13:48:05 +00:00
Gregory Alexander
6641d17c56 Improve mouse performance/responsiveness.
Modified Files:
 	keyboard.cc slowdown_timer.cc
2001-08-23 13:04:14 +00:00
Gregory Alexander
0539a04e3b Fix a filehandle leak.
Modified Files:
 	floppy.cc
2001-08-23 13:02:50 +00:00
Gregory Alexander
a1556b2495 Oh, and this one too. 2001-08-22 02:03:04 +00:00
Gregory Alexander
3b6f192a30 Remove OpenBSD debug info. 2001-08-22 02:01:23 +00:00
Gregory Alexander
dc7fe22635 Almost working version of slowdown timer. 2001-08-22 01:21:30 +00:00
Bryce Denney
6334f837e2 - now BIOS messages have prefix "BIOS" instead of "UNMP" 2001-08-21 04:10:35 +00:00
Gregory Alexander
d9fd468ff4 Made the new PIT the default. 2001-08-18 14:15:41 +00:00
Gregory Alexander
9aa7a88028 Lots of timer stuff.
Fixed a "feature" in pc_system.cc with setting timers to small values
that can cause bochs to hang.

Significantly improved the performance of the new PIT.
It's probably ready to become the default now.

Added a preliminary implementation of the slowdown timer
that Bryce and I had talked about.
2001-08-18 03:28:23 +00:00
Nicholai Benalal
075578621b ok, now the amiga target on cvs is complete 2001-08-16 12:35:52 +00:00
Bryce Denney
f5e4bfe125 - we adopted the eth_linux.cc from splite@purdue.edu since it was
designed for bochs
2001-08-16 04:37:40 +00:00
Bryce Denney
4ee1c21347 - between debian package work by Rom Lemley and other bug fixes, basically
everything has been covered.
2001-08-16 04:36:37 +00:00
Bryce Denney
72d28e5a87 - add string parameter called screenmode
- put #if BX_USE_AMIGAOS...#endif around fullscreen and screenmode, since
  they only apply to amiga
2001-08-16 02:00:31 +00:00
Bryce Denney
595d6a0132 - now I know that 0xe7 is flush cache so I improved the comments somewhat
- if an unknown command comes along and triggers a BX_PANIC and they
  choose the continue, call command_aborted().
2001-08-15 20:54:36 +00:00
Bryce Denney
42aa1fcf46 - I realized that cdrom_amigaos.o is a replacement for cdrom.o, not a
supplement.
2001-08-15 20:39:40 +00:00
Bryce Denney
bf286c20ac - configure and makefile changes for AmigaOS port. Now configure
--with-amigaos is allowed and sets up the makefiles correctly.  It
  defines a symbol called BX_WITH_AMIGAOS, which should be used in
  #if..#endif constructs that are specific to amigaos.
- if --enable-cdrom is used with --with-amigaos, the cdrom_amigaos.o
  object file will be added to CDROM_OBJS in the iodev makefile.
2001-08-15 20:33:47 +00:00
Bryce Denney
f0c45a6f0e - make it clear that it's only used for cdrom_amigaos.cc. 2001-08-15 20:32:16 +00:00
Bryce Denney
06a7658f88 - changed #ifdefs to #ifs. Even when the new PIT is unused, there will
still be a definition of BX_USE_NEW_PIT=0 in config.h.
2001-08-15 20:23:58 +00:00
Bryce Denney
eb6a85629e - add option called fullscreen, for Nicholai Benalal's amiga port 2001-08-15 20:17:19 +00:00
Bryce Denney
4d8a524e81 - add --enable-new-pit option to turn on Greg's PIT model 2001-08-15 17:51:10 +00:00
Bryce Denney
aca0d3fae8 - apply BIOS patch from Barry Allard to check the boot signature
- fiddle with I/O handler for port 0x401 to allow BIOS to write a
  complete panic message
2001-08-15 04:56:00 +00:00
Bryce Denney
c2df8d4f7d - remove newlines from BX_PANIC and similar statements. it is implied. 2001-08-14 06:48:03 +00:00
Bryce Denney
71e8228866 - gcc didn't like the double(N) syntax that worked ok for VC++. It needs
typecast syntax instead, as in "(double)N"
2001-08-14 06:24:12 +00:00
Bryce Denney
af48556aea - add NE2000 support for linux by default 2001-08-14 06:09:28 +00:00
Bryce Denney
eaf4a5f9b6 - remove the include of "type.h" that was added with Psyon's cdrom patch. 2001-08-14 05:01:49 +00:00
Bryce Denney
4f10d657ce - last function never returned a value 2001-08-14 04:56:11 +00:00
Bryce Denney
7432de6de4 - vc++ gripes about conversion from Bit32u to double, so it has to be
converted to Bit32s and then to double.
2001-08-14 04:55:31 +00:00
Bryce Denney
f229ae1afd - a right shift by 12 was accidently written as one greater than instead of two 2001-08-14 04:53:32 +00:00
Bryce Denney
b483593107 - add case for IDE command 0xe7 so that it doesn't panic when installing
win2000
2001-08-13 15:58:35 +00:00
Bryce Denney
1540695f17 - for big endian machines I reversed the bit fields in interrupt_reason.
This was pointed out by Nicholai Benalal.
2001-08-13 15:48:13 +00:00
Bryce Denney
6b6acdc376 - add scsi_commands.h for Amiga CDROM support, from Nicholai Benalal
<nicholai@chello.se>
2001-08-13 15:35:54 +00:00
Bryce Denney
aa671e6e51 - add CDROM support for Amiga, from Nicholai Benalal <nicholai@chello.se> 2001-08-13 15:33:59 +00:00
Bryce Denney
4ef1f45322 - add amiga gui from Nicholai Benalal <nicholai@chello.se> 2001-08-13 15:32:51 +00:00
Bryce Denney
8aa6c07a96 - if log file cannot be fopened, do not allow logfd to become a NULL
pointer.  For now, panic instead to avoid inexplicable segfaults.
2001-08-10 23:03:07 +00:00
Bryce Denney
284178479b - apply patch "patch.ifdef-paging-tlb" 2001-08-10 18:42:24 +00:00
Bryce Denney
80bfb49291 - patch from Thomas Fitzsimmons <fitzsim@cygnus.com> to fix compile
problems when BX_SUPPORT_PAGING and BX_USE_TLB are turned off
2001-08-10 18:31:53 +00:00
Bryce Denney
d3417529f3 - this change was submitted by ecelca@yahoo.com and turned into a patch
by Bryce.  For ecelca@yahoo it fixes ping packet loss, but for Psyon
  it causes 100% packet loss.
2001-08-10 17:19:18 +00:00
Todd T.Fries
53ae809632 cleanup debug stuff 2001-07-10 17:20:36 +00:00
Bryce Denney
c0bd506231 - apply patch [ #439314 ] [Patch] Exception 1 (debug) on HALT
by thomas.petazzoni@meridon.com.  Bryce introduced this bug in
  revision 1.9 when split the code into separate #ifdefs for single
  CPU and multiple CPU.  Comments on the patch are:
  > The following patch addresses a bug concerning the exception 1 (debug)
  > which is being raised during HALT under certain conditions.  It
  > appears only on recent versions (1.2.1 or last CVS), and not on
  > version 2000-0104.
2001-07-08 14:36:36 +00:00
Gregory Alexander
c9d18333c0 More preprocessor controls. 2001-07-05 23:55:22 +00:00
Gregory Alexander
6052b0054b Put the new PIT back in. The whole thing should be ifdef'd
out when not in use.
2001-07-02 01:21:59 +00:00
Gregory Alexander
fc0ee2dc3e Added compiler define to use the new PIT.
Also added a hack to keep the OpenBSD timer problem from filling the log.

The new PIT seems to work, but until some
enhancements are made to the way the timers
and devices.cc work, it'll be slower than
the old one.
2001-07-01 20:49:46 +00:00
Gregory Alexander
0359f17c64 Added a get time function in useconds. 2001-07-01 20:42:56 +00:00
Bryce Denney
04b86b0468 - add new example that logs the PC and I/O reads and writes to
a file called bxevent.txt
2001-06-28 19:48:37 +00:00
Bryce Denney
3f8f6c9a0c - added new macros BX_INSTR_INP2 and BX_INSTR_OUTP2, which report the
values that are being written and read from I/O accesses.
2001-06-28 19:48:04 +00:00
Bryce Denney
43cc565324 - add macros BX_INSTR_START() BX_INSTR_STOP() BX_INSTR_RESET() BX_INSTR_PRINT() 2001-06-28 19:47:29 +00:00
Bryce Denney
b62b7f4bde - use instrumentation macros for
BX_INSTR_START BX_INSTR_STOP BX_INSTR_RESET BX_INSTR_PRINT
  They used to be callback functions, a long time ago.
2001-06-28 19:46:34 +00:00
Bryce Denney
3d29d5d614 - add instrumentation macros for begin and end opcode. These are usually
defined to be empty, so there should be no effect except for instrumentation
2001-06-28 19:45:44 +00:00
Bryce Denney
5188fd30f9 - updated in a few ways: use BX_PANIC and BX_INFO instead of stdio calls
- fixed references to CS
- add prototypes for init and shutdown
2001-06-28 19:43:14 +00:00
Bryce Denney
ab33978151 - add bx_instr_lin_read and bx_instr_lin_write which were missing
- add bx_instr_inp2 and bx_instr_outp2 which actually report the
  values that were used in the I/O operation!  I made new macros
  and functions instead of changing the existing ones on the slight
  chance that somebody already has code that uses the old ones.
2001-06-28 19:05:07 +00:00
Todd T.Fries
a54ef5ad9b add strerror to bpf open error 2001-06-28 14:00:37 +00:00
Bryce Denney
f22aac2100 - Patch from Mike Lerwill <mike@homemjl.freeserve.co.uk>
turn "long long" into Bit64s
2001-06-28 13:51:41 +00:00
Bryce Denney
298d0dff1d - I accidently checked in "panic: action=fatal" with some other things. I
want "panic: action=ask" to be the default.
2001-06-28 02:09:05 +00:00
Bryce Denney
c82a3481e3 - remove patches which have already been committed to the source tree 2001-06-28 01:54:24 +00:00
Bryce Denney
13ff8b1870 - use #undef to avoid name conflicts with OUT. OUT is the name of
part of a pit structure, but is also defined in the system headers
  on some systems.
2001-06-28 01:36:11 +00:00
Gregory Alexander
85b5157a7e Added significant improvements to the new pit. It's about ready for use.
The only big thing it's lacking right now is testing, which is a
little difficult to do, considering the new interface.  Oh, well.
2001-06-27 22:25:24 +00:00
Todd T.Fries
4f1c151520 Move Init $ to ::init() 2001-06-27 20:27:49 +00:00
Todd T.Fries
f833500359 some reformat, various misc stuff with Init, introduce $ 2001-06-27 20:11:10 +00:00
Todd T.Fries
a06b031dcf setprefix -> put 2001-06-27 19:16:01 +00:00
instinc
6af3f5bd9f - Added irq IRR removal when specific EOI is received 2001-06-26 21:55:25 +00:00
Bryce Denney
c718b074db - Another patch from splite@purdue.edu.
The original code for determining the capacity of a disk only worked for
  ATAPI drives, leaving us poor SCSI users in the cold.  The code uses the
  standard Linux CD-ROM driver routines, so it should work on any supported
  drive.  It's basically just a copy of Keith Jones FreeBSD code.
2001-06-26 08:12:21 +00:00
Bryce Denney
ac6f23c3cf - apply ne2k patch from splite@purdue.edu to fix a few problems that
appeared in the guest OS.  Full description:
  > After much grovelling through the 8390 docs, I think this is the
  > correct answer to the odd-length packet problem I was having with
  > the ne2k driver under Linux.
  >
  > According to the datasheet, the 8390 always accesses its buffer
  > memory in word-size chunks if the WTS bit of the DCR is set.  So
  > it will always send a word to the host bus interface if WTS==1.
  > It's up to the host bus interface to deliver the the number of
  > requested bytes to the host.  So disallowing a byte read when the
  > WTS bit is set is wrong (IMO) as the bus interface may allow it,
  > as the NE2000 appears to.
  >
  > The patch to ne2k.h bumps the receive buffer memory size to 32K.
  > This fixes the "out-of-bounds chipmem read" errors I was getting.
  >
  > Can someone with an NE2K datasheet verify these changes?  They
  > jibe with the Linux ne.c driver, anyway.
2001-06-26 07:49:25 +00:00
Bryce Denney
75c87e2113 - apply patch from splite@purdue.edu that add an ethernet packet mover
for Linux!!!  I tested this using host OS kernel 2.2.14, and was able
  to use telnet, ftp, irc, lynx, etc.  Because it is a packet filter
  solution, you aren't able to talk to the host machine, only to other
  machines on the network.  The patch itself is in
  patches/patch.ethlinux-splite.
2001-06-26 07:46:42 +00:00
Bryce Denney
d7b6442ad6 - add "configure" diffs to the patch, so that people don't have to
install autoconf to try the patch out.
2001-06-26 06:12:47 +00:00
Bryce Denney
cc5659e9c5 - pic patch from EKS 2001-06-26 02:38:17 +00:00
Bryce Denney
06fb629d85 - backed out patch.kbd-dieter. The patch appears to work on all XFree86
X servers that I've seen, however on other X servers it makes all
  key mappings into absolute junk.  We need to continue to work on this
  patch to support all X servers and all key maps.
2001-06-25 22:57:27 +00:00
Bryce Denney
eb590bbc46 - added 2 patches from splite@purdue.edu 2001-06-25 21:49:19 +00:00
Bryce Denney
f6fcc9f16b - I'm told that the name I chose for this patch was quite misleading. Sorry.
Greg applied the patch and checked it in, see iodev/ne2k.cc rev 1.14.
2001-06-25 21:43:10 +00:00
Bryce Denney
602b054d38 - when key pressed, print both the keysym and keycode with BX_DEBUG 2001-06-25 21:28:00 +00:00
Bryce Denney
4b73c8b284 - include bpf.h header file in the patch 2001-06-25 20:51:43 +00:00
Bryce Denney
ff2d202a5e - add rcs id 2001-06-25 20:47:10 +00:00
Bryce Denney
20f71edea6 - last version was somewhat broken 2001-06-25 18:19:18 +00:00
Bryce Denney
ce59ee3f00 - patch from bochs@sigint.cs.purdue.edu to avoid using BLKGETSIZE which
does not apply to SCSI
2001-06-25 18:06:11 +00:00
Bryce Denney
7bbb3521db Patch name: patch.ethlinux-bogdand
Author: Bogdan Diaconescu <bogdand@rds.ro>
This was submitted to the plex86 mailing list June 25, 2001, and
adapted for Bochs by Bryce Denney <bryce.denney@bigfoot.com>
2001-06-25 17:38:07 +00:00
Bryce Denney
5de15c7352 - added little headers to the .h files 2001-06-25 14:02:29 +00:00
Bryce Denney
7ceb8a99f0 - added left backslash to the patch 2001-06-25 13:44:06 +00:00
Bryce Denney
f6a09136e7 - add left backslash keycode, also suggested by Dieter Mittelmaier 2001-06-25 13:39:10 +00:00
Bryce Denney
c6e98db0fc - commit patches/patch.kbd-dieter by Dieter Mittelmaier
<dieter.mittelmaier@freenet.de> which fixes X11 keyboard mapping
  on German keyboards using Keycodes instead of Keysyms.
  His comments are:
  > I mapped your BX_KEY-defines in gui.h to values from XFree
  > ../keycodes/Xfree86. Keysyms in x.cc would now translated
  > to keycodes. Now I can use german or us keyboard-layout in
  > win95 and all works well.
  > Note: Changing keyboard layout in win95 to en works too
  > Also you must change keyboard setup in win95 to AT-Enhanced 101/102 keyboard
2001-06-25 13:35:51 +00:00
Bryce Denney
87cb58f15f - update patch so it applies cleanly 2001-06-25 13:32:52 +00:00
Bryce Denney
547cb604b9 - exclude type.h for cygwin, though it is available in VC++. 2001-06-25 12:56:54 +00:00
Bryce Denney
9577b4277c - only define PACKED if it's not already defined, since in Cygwin it's
already defined.
2001-06-25 12:52:37 +00:00
Bryce Denney
9da6c1f199 - fixed: mac addresses used to be printed as an 8-digit hex number.
Now I AND each byte with 0xff before printing.
2001-06-25 07:12:45 +00:00
Bryce Denney
fc63504252 - commit Psyon's CDROM patch that allows Win95/98/ME to read raw
CDs using ASPI interface.
2001-06-25 02:18:16 +00:00
Gregory Alexander
a2db8e751c Only respond to ARPs requesting the external IP address. 2001-06-24 00:48:38 +00:00
Gregory Alexander
d99cdfe521 Add patch to report receive status in all NE2K DMA writes
instead of always writing it to zero, which can't be right.
2001-06-24 00:47:17 +00:00
Bryce Denney
b237ef5a0c - fix bugs introduced in revision 1.48 which caused the default number of
cylinders, heads, and spt of each hard disk to be 1 instead of 0.  This
  caused the BIOS to report the existence of the hard disks, even when
  they were never configured.  The most obvious symptom of this problem
  was "read multiple issued to non-disk" when a cdrom was enabled, which
  happened because the BIOS tried to send hard disk commands to the CDROM.
2001-06-23 18:03:55 +00:00
Bryce Denney
cbb040f68c - added BX_DEBUGs 2001-06-23 17:59:14 +00:00
Bryce Denney
6fcc0b3aa1 - bx_options.cdromd.inserted is now an enum, with values BX_INSERTED or
BX_EJECTED
- added a BX_DEBUG line or two
2001-06-23 15:28:49 +00:00
Bryce Denney
54b7dcdbca - this is now Robb Main's new patch, sent 6/22/2001 2001-06-23 03:59:49 +00:00
Bryce Denney
eb08d39347 - just removed one \n 2001-06-23 03:23:41 +00:00
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