Commit Graph

573 Commits

Author SHA1 Message Date
Bryce Denney
55ed69273b - commit patch from David Haslam <dch@sirius.clara.co.uk>
posted to bochs-developers on Wed, 29 Aug 2001 00:08:45 +0100

  David Haslam wrote:
  > I have been looking at the keyboard problem with Minix, which for
  > those that haven't tried Minix results in every key press giving the
  > response: ^@
  >
  > I am aware of the comments in the changelog that suggest removing 2
  > keyboard ACKs in iodev/keyboard.cc, but this is a bit of a hack,
  > (which is presumably why it was never incorporated).
  >
  > The problem seems to be that the Minix keyboard driver doesn't obey
  > the rules, and Bochs doesn't model the 8042 accurately. When issuing
  > commands to set the LEDs, Minix polls the 8042 output data register
  > waiting for an ACK even though the OBF flag isn't set.
  >
  > Bochs returns zero under these circumstances, which seems to
  > trigger obscure behaviour that messes up the Minix internal
  > keyboard queue. I don't fully understand why Minix breaks, but I
  > think the fact that the ACK generates an interrupt, and Minix treats
  > it as a scan code also has something to do with it.
  >
  > In any case, I believe, the fix is for Bochs to return the output
  > buffer contents, regardless of whether the OBF flag (called outb in
  > Bochs) is set.
  >
  > I expect the real hardware allows the register to be read at anytime,
  > and with this fix we are modelling the behaviour of the hardware more
  > accurately.
  >
  > I have tested it with Minix 2.0.0. Also DOS 6.22 still works after this fix.
  > Does anyone think this will break anything else?
  >
  > This diff is against the latest CVS of iodev/keyboard.cc, version 1.29
  > The last part of the diff is a minor fix to an unrelated debug print.
2001-09-11 16:49:54 +00:00
Bryce Denney
fabdff5a16 - work in progress. I'm in the middle of writing the first section
"What is Bochs?"
2001-09-11 14:01:55 +00:00
Bryce Denney
376f509cd5 - this is the outline that Michael and Bryce passed back and forth when
Michael was first making the docbook skeleton.
2001-09-11 12:56:07 +00:00
Bryce Denney
dcb74396d4 - fix three broken links! 2001-09-10 22:24:39 +00:00
Bryce Denney
c917c66d30 - add <TITLE> tags to everything 2001-09-10 22:12:59 +00:00
Bryce Denney
7c451d057b - add titles 2001-09-10 13:42:03 +00:00
Bryce Denney
5475489bf5 - add nice header with rcsid at the top 2001-09-10 03:59:11 +00:00
Bryce Denney
0319e71eff - teeny adjustments (capitalization, etc.) 2001-09-09 21:54:47 +00:00
Bryce Denney
9ee8a7c540 - describe images and include directories 2001-09-09 21:43:56 +00:00
Bryce Denney
24cbe1e7f6 - fill in lots of blanks! 2001-09-09 20:50:25 +00:00
Bryce Denney
9ad0990fd7 - add small under construction icon 2001-09-09 19:56:08 +00:00
Gregory Alexander
728252e212 Fixed a small problem in the latching code in the new pit.
Personal note: case...BREAK;

This makes OpenBSD and QNX a little happier.

Added debug messages.


 Modified Files:
 	bochs.h iodev/pit82c54.cc
2001-09-05 14:41:55 +00:00
Bryce Denney
c7d44d154b - added missing #define LOG_THIS statement 2001-09-04 14:30:41 +00:00
Todd T.Fries
64ea80c050 more INFO->ERROR/DEBUG cleanups 2001-08-31 22:02:29 +00:00
Todd T.Fries
28885e4973 some INFO->DEBUG/ERROR cleanups 2001-08-31 16:06:32 +00:00
Bryce Denney
baeeb6d99c - give the "struct {} s" a type name 2001-08-30 02:04:42 +00:00
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