Commit Graph

204 Commits

Author SHA1 Message Date
Bryce Denney
7c82612bc9 - add strerror(errno) to open failed message
- minor tweaks
2001-10-06 17:32:58 +00:00
Bryce Denney
19b3618409 - add strerror(errno) output to a few log messages
- treat fatal network errors as panics.  Any error whose behavior is to
  close the fd and give up--it now does a BX_PANIC to say what is happening.
2001-10-06 17:31:44 +00:00
Bryce Denney
d9c708f718 - add strerror(errno) on some log messages 2001-10-06 17:30:19 +00:00
Bryce Denney
a9204c53f0 - make hard disk code return error codes when data is not available instead
of just panicing.  In particular, if the logical sector is out of bounds
  or the disk image cannot be read/written at the desired offset, we now
  abort the ATA command and return an error code.  Many of the old BX_PANIC
  messages are turned to BX_ERROR, so they will still appear in the
  log, but now the device model will try to communicate this fact to
  the OS instead of simply giving up.
2001-10-06 09:04:39 +00:00
Bryce Denney
ec6a8b3ef5 - when you write the device/head register, if the device doesn't exist or
something, we need to set the error in the status register.
2001-10-06 08:59:01 +00:00
Bryce Denney
b974699ce6 - include <windows.h> on win32 platforms so that we get a definition of
wsprintf
2001-10-05 14:01:52 +00:00
Bryce Denney
dd2ac517a6 - don't define BX_HAVE_USLEEP in here, it's set by configure! 2001-10-05 13:31:31 +00:00
instinc
7e2c49c8aa Added the control to enable/disable register tracing 2001-10-03 19:54:29 +00:00
instinc
0982e7f345 Added the ability to enable/disable instruction tracing when built with debugger support 2001-10-03 19:06:17 +00:00
Todd T.Fries
6742ab9f91 panic if networking can't be initalized (packet filter/socket)
if the user wants to use bochs as non-root, disable ne2k!
2001-10-03 14:53:22 +00:00
Bryce Denney
5d00d3073e - mention where to get winpcap 2001-10-03 13:38:17 +00:00
Bryce Denney
91c3513cae - remove hardcoded NIC id 2001-10-03 13:34:55 +00:00
Bryce Denney
daf2a9fb55 - add RCS Id to header of every file. This makes it easier to know what's
going on when someone sends in a modified file.
2001-10-03 13:10:38 +00:00
Todd T.Fries
d5ecddc64c a few output cleanups
make windows not panic bochs when probing for ne2k, still doesn't work though
2001-10-02 18:38:03 +00:00
Bryce Denney
df50cd50fd - 2 fixes: use S_IFBLK again instead of comparing the st_mode directly
- we must use #if BX_WITH_WIN32, not #ifdef because it's always defined
2001-10-01 17:23:45 +00:00
Bryce Denney
388fb0385f - commit Don Becker's fixes for win32 raw floppy and floppy disk images 2001-10-01 17:20:08 +00:00
Bryce Denney
25942a527d - add win32, coded by Don Becker. 2001-10-01 03:53:40 +00:00
Bryce Denney
c38d1a046a - add win32. Code from Don Becker. 2001-10-01 03:52:10 +00:00
Bryce Denney
ddb2c85b06 - add code from Psyon, aka Don Becker 2001-10-01 03:50:50 +00:00
Bryce Denney
a07d62fd24 - add "info ne2k" command to the debugger, which prints all the registers
of the NE2000 model.
2001-09-29 19:16:34 +00:00
Gregory Alexander
67f4ebe68d Changed OUT to OUTpin.
Modified Files:
 	pit82c54.cc pit82c54.h
2001-09-29 15:31:13 +00:00
Bryce Denney
0640ab3b04 - attempt to fix bug [ #439945 ] Floppy drive read input error checking. 2001-09-29 03:29:27 +00:00
Bryce Denney
6145266a70 - now there are BX_ERROR lines for all commands from ATA/ATAPI 3,4,5,6. 2001-09-29 02:08:11 +00:00
Bryce Denney
1a856a1726 - add BX_ERROR for every command in ATAPI-6 that bochs does not support.
I still need to do add some commands from older specs that are obsolete
  (and not listed) in ATAPI-6.
- commands that aren't in the spec will still panic.
2001-09-28 22:20:49 +00:00
Bryce Denney
c0719c7eb7 - more cleanup: clarify some log messages, add command aborted when some
atapi commands are tried on a disk, etc.
2001-09-28 07:18:55 +00:00
Bryce Denney
951014d794 - add note about where to find the spec
- fill in names from spec on various commands
- add command aborted for 0x08 device reset on disks (it's only for ATAPI)
- add command aborted for 0xe1 idle immediate
2001-09-28 07:14:50 +00:00
Bryce Denney
dd0d8a8524 - use #if BX_WITH_MACOS around fd_write too. I meant to do this the
first time...
2001-09-26 17:35:51 +00:00
instinc
e09d429117 added the output of a little information string to help the user understand why it returned to the prompt. 2001-09-26 03:07:32 +00:00
instinc
677ece7d04 added 0x8AE0 to return to prompt debugger 2001-09-26 02:52:03 +00:00
Bryce Denney
1ef0b3c6ef - use #if BX_WITH_MACOS around the special fd_read and fd_write code, since
MacOS X behaves more like unix now.
2001-09-26 00:19:44 +00:00
Bryce Denney
39aa03d622 - must use #ifdef instead of #if 2001-09-24 12:09:45 +00:00
Bryce Denney
9454441958 - add --enable-slowdown option to configure, which turns on Greg's
slowdown timer device.
2001-09-24 05:23:55 +00:00
Bryce Denney
53d483864c - use #ifs instead of #ifdefs for slowdown timer code. The
usual autoconf/configure method is to use 0 vs 1, not defined vs
  undefined to turn things on.
2001-09-24 05:08:25 +00:00
Bryce Denney
140a7a23b8 - avoid using #define LOG_THIS...#undef LOG_THIS trick, and just
call panic directly.  This solves bug [ #464258 ] LOG_THIS redefined in
  keyboard.h
2001-09-24 04:59:35 +00:00
Bryce Denney
a4ca526eee - add preprocessor tricks that undefine the OUT symbol if it's already
been defined elsewhere.  This had to be done in the old pit as well,
  so it's not a new problem by any means.
2001-09-24 02:14:05 +00:00
Gregory Alexander
3ace9e3288 Minor updates to the mouse code that may help with enable/disable problems.
Also fixed a warning in pc_system.h

 Modified Files:
 	main.cc pc_system.h iodev/keyboard.cc iodev/keyboard.h
2001-09-21 02:46:17 +00:00
Bryce Denney
6d129d771c - set a bit in the CMOS that says the processor has an FPU. This is
from patch [ #455006 ] Device byte is not initialized aptly.
  I can't give credit, because he or she did not leave a name.
2001-09-19 17:29:07 +00:00
Bryce Denney
3bba2f657f - apply patch from patches/patch.lba. This is taken from plex86 cvs
and modified for bochs.  Minimal testing so far...
2001-09-19 15:30:44 +00:00
Bryce Denney
690c4eee31 - clarify BX_INFO message 2001-09-19 15:10:38 +00:00
Bryce Denney
8c6446cf4c - only put 0xf into the 2nd hard disk field when the cdrom is not present.
This is a patch from Volker Ruppert <Volker.Ruppert@t-online.de>, who
  comments: "The fdisk command reports an unusable second harddisk if the cdrom
  is enabled. This patch helps, but I don't know if it is the right way."
2001-09-15 13:35:42 +00:00
Bryce Denney
1006cb2c6b - patch from Volker Ruppert <Volker.Ruppert@t-online.de>, who writes:
> I have inspected the header of output file and several sample MIDI files. I
  > have found two different bytes in the header. After I have changed this
  > bytes Winamp could play the output file, but it showed a track time of
  > 0:00. The Windows Media Player still doesn't like the file.
2001-09-15 13:33:16 +00:00
instinc
f89d1e6f01 added support for the debugger, it now returns to the debugger prompt 2001-09-15 00:12:40 +00:00
instinc
0a762c4023 final revision of the memory protection material 2001-09-14 22:38:06 +00:00
instinc
a10f33a8c7 Removed the structure from the class definition and used it directly in the object 2001-09-14 22:37:32 +00:00
instinc
c52ee908a8 Added range_test function, partly completed write_mem and read_mem 2001-09-14 16:21:02 +00:00
instinc
ccc7026539 Added a few more functions such as range_test 2001-09-14 16:20:30 +00:00
instinc
426982c0ec Added I/O Interface to the debugger 2001-09-14 15:01:29 +00:00
instinc
0496446814 I/O interface to the debugger functions
Allow the various debugging features to be controlled directly by the guest os
2001-09-14 14:29:21 +00:00
instinc
014fc2c10c header file for the iodebug interface 2001-09-14 14:28:23 +00:00
Bryce Denney
f04e6fe346 - apply VPATH patch from Edouard G. Parmelan, posted to list on September 1 2001-09-14 04:19:08 +00:00