Commit Graph

2696 Commits

Author SHA1 Message Date
Kevin O'Connor a75284dbd7 Commit missing files from last commit. 2008-03-05 20:56:23 -05:00
Kevin O'Connor 3d02941716 This patch adds the BIOS support for SMP, ACPI, PCI, SMM, SMBIOS.
Signed-off-by: Nguyen Anh Quynh

Several compile fixes provided by Kevin O'Connor
2008-03-05 20:43:38 -05:00
Kevin O'Connor 95b2f78f97 Add initial support for apmbios code. 2008-03-05 19:52:06 -05:00
Kevin O'Connor 180a959053 Get CDROM emulation working.
Fix bug causing ata_cmd_packet to insl to wrong address.
Add new cdrom_read helper.
Join ata.hdidmap/cdidmap into one array variable.
Rename CONFIG_ELTORITO_BOOT to CONFIG_CDROM_BOOT.
Add cd emulation code.
2008-03-04 22:50:53 -05:00
Kevin O'Connor 7d0f08a738 Ignore precision specifiers in printf code.
This at least allows the variable to be printed.
2008-03-04 22:27:55 -05:00
Kevin O'Connor 31d8c8aa99 Move cdrom code to its own file (cdrom.c). 2008-03-04 19:56:41 -05:00
Kevin O'Connor 941d3e4626 Initial cd emulation code.
Provides the int13 hooks - still a work in progress.
2008-03-04 19:45:04 -05:00
Kevin O'Connor b74102d368 Initial cdrom support. 2008-03-03 21:57:30 -05:00
Kevin O'Connor 078c13e641 Ubuntu workaround found; update TODO. 2008-03-03 21:56:54 -05:00
Kevin O'Connor 96aa5e93c0 Don't pass segment to ata_cmd_packet.
The segment is always the stack - so no reason to pass it.
2008-03-03 21:56:20 -05:00
Kevin O'Connor 6eee8ca27d types.h & ata.h
This patch addes header guard to ata.h and move PACKED definition to
types.h (to be used for other files - sent later)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2008-03-03 20:14:12 -05:00
Kevin O'Connor d111833599 Add new item to TODO. 2008-03-02 23:26:09 -05:00
Kevin O'Connor ad4ec34fe8 Cleanup start logic in post.
Merge eoi_jmp_post() with check_restart_status() - it makes the logic
a little simpler to understand.
2008-03-02 23:25:11 -05:00
Kevin O'Connor acad0a6ed4 use symbols for segment numbers
this patch uses symbols for segment numbers in romlayout.S

Signed-off-by: Nguyen Anh Quynh
2008-03-02 23:24:16 -05:00
Kevin O'Connor 410680bafe Apply workaround to allow compiling under Ubuntu.
Add make option "AVOIDCOMBINE" that prevent -combine from being used.
Ubuntu makes symbols non-global -- have defsyms.py pick them up anyway.
2008-03-02 20:48:35 -05:00
Kevin O'Connor c65a3804a9 Bug fixes; get mouse working.
Fix bug in post causing PIC2 to not be initialized properly.
Only run ata_detect if CONFIG_ATA enabled.
Improve debugging aids - introduce debug_isr(); move DEBUGF to each file.
Enable mouse by default.
Fix bug in floppy causing extra test of PORT_FD_STATUS on recalibrate.
Always disable/enable kbd in handle_09 event.
2008-03-02 13:58:23 -05:00
Kevin O'Connor 44c631dfd2 Enhance included bios tables.
Moved floppy parameter table to its 0xefc7 location.
Define floppy base table as a struct.
Cleaned up definitions in romlayout.S
Fixed bug in handle_15c0 - wasn't clearing cf.
Clean up some post.c usages of bios tables.
2008-03-02 11:24:36 -05:00
Kevin O'Connor 8ce2cd846e Minor cleanup of util.h
Enable output from DEBUGF macro.
Cleanup extended asm args.
2008-03-02 08:48:05 -05:00
Kevin O'Connor 4d6dbc6f54 Initial support for ps/2 mouse.
The code doesn't work, but most things are present.
2008-03-02 08:43:44 -05:00
Kevin O'Connor ee2fd7a588 Rename PORT_KBD_* to PORT_PS2_*
This change is in preparation for mouse support.
2008-03-02 08:42:16 -05:00
Kevin O'Connor 63dbcfbff1 Various minor cleanups. 2008-03-01 22:17:07 -05:00
Kevin O'Connor e43df9ea52 Add additional int15 handlers for disk drives. 2008-03-01 22:16:32 -05:00
Kevin O'Connor b8aacb065b Reduce stack usage in call16().
Tell gcc that registers are clobbered instead of using push/popal.
2008-03-01 14:56:07 -05:00
Kevin O'Connor 3a47a310ed Cleanup implementation of call16(). 2008-03-01 14:46:37 -05:00
Kevin O'Connor e20ed9f362 Minor - reduce stack usage of handle_1587. 2008-03-01 14:25:44 -05:00
Kevin O'Connor d427a3f85a Implement basic "eoi_jmp_post" code to post step. 2008-03-01 14:02:41 -05:00
Kevin O'Connor e78cc6c6c3 Update TODO notes. 2008-03-01 13:48:26 -05:00
Kevin O'Connor cb6735fcfe Improve comments in romlayout.S 2008-03-01 13:39:52 -05:00
Kevin O'Connor adb6b37163 Fix for int15 handlers.
The int 1587 was long jumping to wrong segment.
Minor cleanup - breakout handlers better.
2008-03-01 13:38:38 -05:00
Kevin O'Connor c09492e78a Add copyrights to ata.c/h files. 2008-03-01 13:38:07 -05:00
Kevin O'Connor 12dade52f8 Minor update to bprintf.
Support '%c'.
Fix bug causing junk to be printed on unrecognized % code.
2008-03-01 13:35:17 -05:00
Kevin O'Connor 15aee2e806 Make disk access work.
Several bug fixes.
Move ata_detect from disk.c to ata.c.
2008-03-01 13:34:04 -05:00
Kevin O'Connor 596cf60bed Fix header guards produced by defsys.py
Issue spotted by Nguyen Anh Quynh
2008-03-01 10:11:55 -05:00
Kevin O'Connor 95576e7670 Cleanup of post.c
Mostly from suggestions by Nguyen Anh Quynh
2008-03-01 09:57:51 -05:00
Kevin O'Connor 21e930bd2a Use symbols instead of number for segment descriptors in romlayout.S
Patch from Nguyen Anh Quynh
2008-03-01 09:49:37 -05:00
Kevin O'Connor 3491e8b976 Initial support for ATA disks. 2008-02-29 00:22:27 -05:00
Kevin O'Connor 4ce6a497b2 Enable extra debugging.
Route BX_INFO to debug port.
Add a new debug_stub() function.
2008-02-29 00:21:27 -05:00
Kevin O'Connor b792b3c00e Minor cleanup in floppy.c 2008-02-29 00:20:32 -05:00
Kevin O'Connor d5f1e84aa4 Have compiler add debugging info to main 16bit code. 2008-02-28 20:01:11 -05:00
Kevin O'Connor ddd4bfdfc2 the idt descriptors look a bit wrong. this patch fixes that
From Nguyen Anh Quynh
2008-02-28 20:00:20 -05:00
Kevin O'Connor 786502d783 Some cleanups based on patch by Nguyen Anh Quynh
Add include guards to header files.
Disable stack protector on gcc versions with that option.
Fix lds bug in src/rombios32.lds.S
Don't forward declare "struct bregs;" - it may be confusing gcc on some versions.
2008-02-27 10:41:41 -05:00
Kevin O'Connor a2e7380fdf Merge recent changes to bochs-bios CVS head.
Slightly different order to rom-scanning.
2008-02-27 10:27:00 -05:00
Kevin O'Connor bdce35fbdc Misc updates.
Try to fix up make dependency tracking by including a "null.c" file.
Initialize hard disk tables during post.
Move RTC handlers from system.c to clock.c
Use a macro to init stacks in romlayout.S
Add C-Code stats to buildrom step.
2008-02-26 21:33:14 -05:00
Kevin O'Connor 38fcbfeebc Version 0.1.2 2008-02-25 22:30:47 -05:00
Kevin O'Connor 4b60c000de Version 0.1.1 2008-02-25 22:29:55 -05:00
Kevin O'Connor f076a3eeb9 Initial checkin. 2008-02-25 22:25:15 -05:00