Commit Graph

554 Commits

Author SHA1 Message Date
Stanislav Shwartsman
df3b61e3a9 typo fix 2012-08-02 14:37:17 +00:00
Stanislav Shwartsman
abaad74fc9 trivial optimization - part of pacthes from Yeong-uk Jo 2012-08-01 16:11:20 +00:00
Stanislav Shwartsman
a7c8d38871 Re-add lost comments in floppy_media_sense 2012-07-25 19:49:35 +00:00
Stanislav Shwartsman
eb9616024f Use ASM comment marks 2012-07-23 16:11:24 +00:00
Stanislav Shwartsman
b57ace2579 Merged a side note patch by Sebastian
[Bochs-developers] [Patch #3539228] Part 3

> Added dummy EOI handler and all unused IRQ vectors set to this.QEMM 97 does not crash any more.

Looks good. Those "SET_INT_VECTOR comments" should be removed.

Sebastian
2012-07-19 19:36:44 +00:00
Stanislav Shwartsman
5afe0cbb48 use constant instead of magic value 2012-07-17 19:58:00 +00:00
Volker Ruppert
53438e92c6 - fixes based on Debian patches by Guillem Jover
- set SHELL variable with configure script
  - add '--tag CXX' argument to libtool calls
2012-07-14 07:01:43 +00:00
Stanislav Shwartsman
24edf649eb added comments in BIOS code 2012-07-11 19:16:23 +00:00
Volker Ruppert
3c707ee976 - recompiled after patch #5 2012-07-10 18:33:52 +00:00
Volker Ruppert
926900739f - rombios patch #5 by greatpsycho
- Changed memory reference functions argument order to suitable for use
    LDS/LES instructions.
2012-07-10 18:33:09 +00:00
Volker Ruppert
625991504b - recompiled after patch #4 2012-07-10 18:31:10 +00:00
Volker Ruppert
433fc25a88 - rombios patch #4 by greatpsycho
- Added SS based reference helper function and changed SS based refer to use
    this functions.
2012-07-10 18:30:17 +00:00
Volker Ruppert
f0c3b2ad90 - recompiled after patch #3 2012-07-10 18:28:56 +00:00
Volker Ruppert
7b07d3287a - rombios patch #3 by greatpsycho
- Changed to frequently using segment base to DS based - Added set_DS function
    (Set DS value,returns old DS value),(read/write)_(byte/word/dword)_DS macro
    to refer DS segment based data.
  - Almost BIOS interrupt handler wrapper changed to DS base to use DS-based
    reference macro effectiently.
2012-07-10 18:28:14 +00:00
Volker Ruppert
4f2b643aca - recompiled after patch #2 2012-07-10 18:26:45 +00:00
Volker Ruppert
6267fd7e9d - rombios patch #2 by greatpsycho
- Merged ata_cmd_data_in and ata_cmd_data_out function to ata_cmd_data_io
  - Merged INT13 AH=02 and AH=03 I/O routine
  - Modified cdrom_boot,int15_function,set_e820_range and pci/pnobios low level code to more optimal
  - Deleted INT1C handler that duplicated with dummy_iret_handler
2012-07-10 18:26:01 +00:00
Volker Ruppert
748315591c - recompiled BIOS after patch #1 2012-07-10 18:22:57 +00:00
Volker Ruppert
82ebbbdd0b - rombios patch #1 by greatpsycho. This compatibility patch includes:
- Added dummy EOI handler and all unused IRQ vectors set to this.QEMM 97 does not crash any more.
  - Changed INT15 AH=80,81,82,90,91 functions to return success.
  - Added INT71(IRQ9 - Redirect to IRQ2) handler.
  - Some IRQ handlers call INT15 with AH=91.
  - INT16 handler calls INT15 with AX=9002.
  - Fixed IRQ14 handler that overwrites 40:8F to 00
2012-07-10 18:21:51 +00:00
Volker Ruppert
9ead528c5a - recompiled after latest changes 2012-06-28 15:20:15 +00:00
Stanislav Shwartsman
2e9f5570d9 SF BOS patches:
- Basic low-level function optimization
- Optimization of bios_printf() and removal of put_int()
- Optimization of timer_tick_post
2012-06-28 11:02:39 +00:00
Volker Ruppert
4e95f44873 - added missing MADT interrupt source override and fixed MP table
(patches by Sebastian Herbszt)
2012-05-13 20:07:32 +00:00
Volker Ruppert
7b51b829f5 - added missing MADT interrupt source override and fixed MP table
(patches by Sebastian Herbszt)
2012-05-13 20:06:51 +00:00
Volker Ruppert
f4efb6f248 - discard "eh_frame" (compilation fix from Debian patches) 2012-05-12 22:25:09 +00:00
Stanislav Shwartsman
55e21bedcb fixed possible rombios bug - according to comment in Bochs-Devs mailing list by David Laight 2012-05-06 19:36:41 +00:00
Volker Ruppert
bfa3a14265 - PCI ROM handling fixes
- fixed tmpsize (patch by Sebastian Herbszt)
  - disable PCI ROM access after copying to shadow RAM (same as SeaBIOS)
2011-12-22 07:53:51 +00:00
Volker Ruppert
40052509d2 - PCI ROM handling fixes
- fixed tmpsize (patch by Sebastian Herbszt)
  - disable PCI ROM access after copying to shadow RAM (same as SeaBIOS)
2011-12-22 07:53:25 +00:00
Volker Ruppert
e38772006f - added PCI ROM init code that copies to shadow RAM and use it for both VGA
and other boot ROMs
- define and use PCI constants (patch by Sebastian Herbszt)
2011-12-20 19:34:47 +00:00
Volker Ruppert
46d5caa98d - added PCI ROM init code that copies to shadow RAM and use it for both VGA
and other boot ROMs
- define and use PCI constants (patch by Sebastian Herbszt)
2011-12-20 19:34:05 +00:00
Volker Ruppert
f66a04e7d1 - recompiled BIOS images 2011-11-24 17:24:05 +00:00
Stanislav Shwartsman
f09bdf353a RDMSR can also read TSC so make it end-of-trace as well (same as RDTSC) 2011-11-24 16:03:51 +00:00
Volker Ruppert
42e571ab1b - fix package size in pointing device flags 2 (SF patch #3435049)
- implemented legacy BIOS int13 AL=17/18h diskette functions (patch taken from
  comment to SF feature request #3424738)
2011-11-19 12:38:41 +00:00
Volker Ruppert
e247b0f14d - fix package size in pointing device flags 2 (SF patch #3435049)
- implemented legacy BIOS int13 AL=17/18h diskette functions (patch taken from
  comment to SF feature request #3424738)
2011-11-19 12:38:12 +00:00
Volker Ruppert
0d4392fc13 - updated LGPL'd VGABIOS to version 0.7a 2011-10-30 17:03:09 +00:00
Stanislav Shwartsman
01dbcff569 Support ctrl-alt-del for reboot by Sebastian 2011-08-16 17:54:44 +00:00
Volker Ruppert
83f0e388c5 - recompiled after latest changes 2011-08-15 06:25:51 +00:00
Stanislav Shwartsman
7feb947830 BIOS fixes 2011-08-15 06:05:52 +00:00
Volker Ruppert
5a1cd21ca9 - added PCI ROM support to the Bochs BIOS (works with both pcivga and cirrus)
- scan for VGABIOS ROM after rombios32 init
  - copy PCI ROM to shadow RAM at 0xc0000 and enable it
  - NOTE: this feature does not work with BIOS-bochs-legacy, so we should recommend to use the
    default BIOS for PCI display adapters
  - TODO: load VGABIOS ROM from the vga code instead of main.cc if PCI is disabled
2011-07-03 08:12:48 +00:00
Volker Ruppert
4ce12047a9 - added PCI ROM support to the Bochs BIOS (works with both pcivga and cirrus)
- scan for VGABIOS ROM after rombios32 init
  - copy PCI ROM to shadow RAM at 0xc0000 and enable it
  - NOTE: this feature does not work with BIOS-bochs-legacy, so we should recommend to use the
    default BIOS for PCI display adapters
  - TODO: load VGABIOS ROM from the vga code instead of main.cc if PCI is disabled
2011-07-03 08:10:16 +00:00
Volker Ruppert
0eb8f11b45 - updated LGPL'd VGABIOS to current CVS (added PCI ROM support for the VBE-specific images) 2011-06-27 19:11:23 +00:00
Stanislav Shwartsman
e9ed944ba8 BIOS32 - fix length of the BIOS service.
Fix for bug #3170157 supplied by Jonathan de Boyne Pollard.
2011-05-29 16:35:30 +00:00
Volker Ruppert
0458541156 - updated LGPL'd VGABIOS to current CVS
* fixed DAC palette in 8 bpp VBE and Cirrus modes (using the same palette as
    VGA mode 0x13
  * added HDTV resolutions (patch by Tristan Schmelcher)
2011-04-14 16:27:13 +00:00
Stanislav Shwartsman
a2e2feced4 set propertities for more files 2011-02-25 15:32:08 +00:00
Stanislav Shwartsman
0b60a50dd9 date in (c) string 2011-02-24 22:12:02 +00:00
Stanislav Shwartsman
00981cd7a6 Adding Id and Rev property to all files 2011-02-24 22:05:47 +00:00
Volker Ruppert
389938a508 - recompiled after latest changes 2011-02-10 22:53:45 +00:00
Stanislav Shwartsman
90b728e86f Support T13 EDD-3 specification in addition to Phoenix.
Callers with 66 bytes buffers will get data according to the Phoenix and with 74 bytes according to the T13 specification.
Should fix bug #3012207.

Sebastian
2011-01-26 09:52:02 +00:00
Stanislav Shwartsman
2f29fdafb8 Support reporting of interface type ATAPI.
Sebastian
2011-01-25 15:50:20 +00:00
Volker Ruppert
692ef9ca32 - recompiled after latest changes 2011-01-17 16:43:04 +00:00
Stanislav Shwartsman
72af6740ac Use EBDA fields for mouse handling by name.
Sebastian

A simple one-liner to fix building on Mac OS X with a case-sensitive file system.

-- Heikki Lindholm
2011-01-16 19:29:11 +00:00
Stanislav Shwartsman
f2bc3a19ca Use space padding for EDD host bus and interface type like Award Modular BIOS v4.51PG and AMIBIOS V3.02.
Sebastian
2011-01-13 20:47:00 +00:00
Stanislav Shwartsman
2a6df4fc1e Spelling fixes from VirtualBox.
Sebastian
2010-12-29 06:39:53 +00:00
Stanislav Shwartsman
715e65dd05 Merge EDD INT 15 Fn 48h code between int13_harddisk() and int13_cdrom().
Sebastian
2010-09-26 18:38:58 +00:00
Volker Ruppert
e99736e27a - regenerated after latest changes 2010-09-26 06:43:28 +00:00
Stanislav Shwartsman
3994761b08 Patch by Sebastian:
Missing EDD fixes for cdrom code
2010-09-25 07:21:25 +00:00
Volker Ruppert
deb572b355 - recompiled BIOS images 2010-08-07 20:59:07 +00:00
Stanislav Shwartsman
e989201277 I could not find DPTE revision 0x10 mentioned in the specifications.
Size of 66 bytes is invalid. Also clear DPT "reserved3" field.

Sebastian
2010-08-07 06:58:10 +00:00
Stanislav Shwartsman
fd155a5f56 Bios fixes by Sebastian 2010-08-01 21:54:32 +00:00
Stanislav Shwartsman
bfac0dd6c6 Move some defines from rombios32.c to rombios.h
Sebastian
2010-05-16 14:35:22 +00:00
Stanislav Shwartsman
f899949c3a Sebastian define port number constants 2010-05-10 05:24:39 +00:00
Volker Ruppert
e21873deab - regenerated after latest changes 2010-04-05 13:08:13 +00:00
Stanislav Shwartsman
bcc5747abe Handle tables correctly if BX_USE_EBDA_TABLES is set.
- Sebastian
2010-04-04 19:38:02 +00:00
Stanislav Shwartsman
969eb42454 Fixes by Sebastian 2010-04-04 19:33:50 +00:00
Volker Ruppert
348d36ce80 - regenerated 2010-02-09 23:51:01 +00:00
Stanislav Shwartsman
bd9e7d3a1f The default i440_pcidev values represent a valid bus and devfn. Set it to invalid values to make failed detection noticable.
- Sebastian
2010-02-09 21:23:17 +00:00
Stanislav Shwartsman
63140a9c57 rombios32.o should depend on rombios.h.
- Sebastian
2010-02-08 21:25:35 +00:00
Stanislav Shwartsman
27d82f8856 Init PIC on CMOS shutdown status 05h. Should fix bug #2734455.
- Sebastian
2010-02-08 20:56:55 +00:00
Stanislav Shwartsman
9070f65d32 BIOS updates by Sebastian 2010-02-01 21:05:42 +00:00
Stanislav Shwartsman
9b40d6fe47 Set bios_starting_address_segment to 0xe000 and bios_rom_size to 128 kB.
- Sebastian
2010-01-29 21:09:38 +00:00
Stanislav Shwartsman
6de20a6cae Introduce BX_APPVENDOR and set it to "The Bochs Project".
- Sebastian
2010-01-29 20:57:07 +00:00
Stanislav Shwartsman
a060d16845 SMBIOS patches by Sebastian 2010-01-26 07:41:49 +00:00
Volker Ruppert
9e85439006 - regenerated after latest changes 2010-01-18 20:34:51 +00:00
Stanislav Shwartsman
327a4ab5db Mark 1 GB instead of 512 MB at 3 GB as UC.
Add PNP BIOS dummy support
by Sebsatian
2010-01-18 20:04:44 +00:00
Stanislav Shwartsman
3365b50e92 Fix comment 2010-01-17 17:35:04 +00:00
Volker Ruppert
8fda6f8810 - regenerated after latest changes 2010-01-14 18:19:11 +00:00
Stanislav Shwartsman
d548442c48 ROM BIOS patches by Sebastia 2010-01-14 07:04:40 +00:00
Stanislav Shwartsman
fcfac5f993 BIOS fixes from Sebastian 2010-01-05 08:20:05 +00:00
Volker Ruppert
c0c84f1a91 - regenerated after latest changes 2010-01-04 16:52:20 +00:00
Stanislav Shwartsman
0e57ef4cee With BX_USE_EBDA_TABLES memory used by the MP table should be marked as reserved.
This should fix bug #1947249.

- Sebastian
2010-01-03 19:23:02 +00:00
Stanislav Shwartsman
8733e9a8e1 Remove support for BX_USE_EBDA_TABLES from smbios_init().
The SMBIOS spec says that at least the entry point should be between 0xf0000 and 0xfffff. Since the EBDA is currently limited to 1 KB disallow putting the SMBIOS tables there.
This should fix bug #1933859.

- Sebastian
2010-01-02 22:35:45 +00:00
Stanislav Shwartsman
0951f2679a makesym.perl misses symbols SF patch 2009-12-30 20:28:23 +00:00
Volker Ruppert
4fb73bde27 - regenerated after latest changes 2009-12-30 20:09:48 +00:00
Stanislav Shwartsman
aa07cd0324 Tables generated in rombios32 were overwriten by the IPL code in rombios.
This should partially fix bug #1933859.

- Sebastian
2009-12-30 19:21:46 +00:00
Stanislav Shwartsman
631a806036 The EBDA overflow check should not depend on bios_table_cur_addr.
- Sebastian
2009-12-28 20:08:30 +00:00
Stanislav Shwartsman
ddf4df1dc0 Remove broken support for BX_CPU < 3.
- Sebastian
2009-12-27 17:03:14 +00:00
Stanislav Shwartsman
79e08eb21e BIOS patches from Sebastian 2009-12-21 08:08:24 +00:00
Volker Ruppert
d41bbbc412 - recompiled after latest changes 2009-12-20 18:04:46 +00:00
Stanislav Shwartsman
ea2be842a2 Fix PCI memory hole by Sebastian 2009-12-20 16:43:50 +00:00
Stanislav Shwartsman
4ef233daae Remove pci_bios_bigmem_addr. It seems no longer necessary because pci_bios_mem_addr now starts at 3GB.
- Sebastian
2009-12-19 17:31:43 +00:00
Volker Ruppert
57582c1a7f - recompiled after latest changes 2009-12-12 14:24:49 +00:00
Stanislav Shwartsman
589db6cf4a Fix interrupt vectors for INT 60h-66h (reserved for user interrupt) by setting them to zero.
Move code for INT setup to post_init_ivt.
2009-12-12 08:29:01 +00:00
Volker Ruppert
403454e1e4 - BIOS binaries regenerated 2009-12-11 13:42:46 +00:00
Stanislav Shwartsman
ed1de5d327 Commit "fix for BIOS bug" changed MSR_MTRRdefType to MTRR_MEMTYPE_UC.
Change it back to MTRR_MEMTYPE_WB.
2009-12-11 07:44:48 +00:00
Volker Ruppert
e14f643741 - fixed MTRR mask write bug and enabled check in msr.cc 2009-10-25 10:25:38 +00:00
Volker Ruppert
1fab3d734a - recompiled BIOS after latest changes 2009-10-24 07:16:54 +00:00
Stanislav Shwartsman
489b3ddbcb fix for BIOS bug 2009-10-23 15:32:45 +00:00
Volker Ruppert
7e56eae48c - fixed SF bug #2851495: if PCI BIOS functions return without error, the
int1a_handler must complete with iret to re-enable interrupts
2009-09-28 16:36:51 +00:00
Stanislav Shwartsman
2f65d8dfe8 patch from QEMU 2009-09-27 09:03:02 +00:00
Stanislav Shwartsman
0778545e2c fixed comment 2009-06-14 06:00:36 +00:00
Stanislav Shwartsman
bd15c11ee1 Fix rom checksum for rom size of 65536 bytes.
- Sebastian
2009-06-07 21:34:59 +00:00
Volker Ruppert
8ce5570946 - implemented INT 15h/89h (patch by Sebastian Herbszt) 2009-05-10 08:26:42 +00:00