aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-03-09Fix bug in SET_FARVAR.Kevin O'Connor1-1/+2
The (val) parameter needs to be evaluated before setting the segment.
2008-03-09Optimize insb/outsb/insw/etc. functions.Kevin O'Connor5-48/+61
Use "string ops" to simplify port accesses. Always run "cld" on entry to C code.
2008-03-08Minor cleanups.Kevin O'Connor5-5/+17
Improve some debugging messages. Minor code clean ups. Improve apmbios entry points (still untested).
2008-03-08Fix bug in ata.cKevin O'Connor1-34/+28
Code wasn't incrementing offset properly. Also clean up code a little and add some debugging info.
2008-03-08Port rombios32 code from bochs-bios.Kevin O'Connor10-17/+2691
This adds acpi, smbios, pci init, etc. Changes from original rombios32.c code: * Header file translation. * Use common functions already in code (eg, outb, memset, bios_printf, usleep) * Implement trampoline for disabling bios shadowing (rombios32 code actually runs in the 0xf0000 area). * Copy asm code from rombios32start.S to an asm() statement in C code.
2008-03-08Minor hack - allow formats with 'l' to be shown in printf.Kevin O'Connor1-0/+5
2008-03-08Revert "Commit missing files from last commit."Kevin O'Connor13-2782/+0
This reverts commit a75284dbd70acc7ec4a832045c8a2fbec2d773d8.
2008-03-08Revert "This patch adds the BIOS support for SMP, ACPI, PCI, SMM, SMBIOS."Kevin O'Connor6-118/+4
This reverts commit 3d029417164e9a6dffee491fb061de3de6d85595. Conflicts: src/post.c
2008-03-08Make sure to restore %ds on return from call16.Kevin O'Connor1-3/+5
2008-03-08Minor cleanup - move init of bda->equipment_list_flagsKevin O'Connor1-4/+3
The init of equipment_list_flags was in kbd_setup() - but it is unrelated.
2008-03-08Fix keyboard init bug.Kevin O'Connor1-9/+12
kbd_flush() wasn't implemented properly. Don't panic on first kbd_flush call.
2008-03-08Enhance APM support.Kevin O'Connor3-13/+35
Create and register protected mode interfaces. Still needs more testing.
2008-03-08Clean up disk debugging messages.Kevin O'Connor2-28/+33
2008-03-08use symbols for E820 memory typesKevin O'Connor1-6/+12
This patch uses symbols for E820 memory types (system.c) Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2008-03-06Use symbols for cmos offsets in ram_probe()Kevin O'Connor3-18/+20
This patches uses symbols for cmos offsets when calculating ram size in ram_probe() Besides, it adds some cmos offset symbols into cmos.h, and changes some memory cmos offset to be more meaningful. Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2008-03-05Rename VISIBLE macro for better control.Kevin O'Connor11-28/+37
VISIBLE16 is used to mark functions externally available in 16bit code. VISIBLE32 is for 32bit functions.
2008-03-05Commit missing files from last commit.Kevin O'Connor13-0/+2782
2008-03-05This patch adds the BIOS support for SMP, ACPI, PCI, SMM, SMBIOS.Kevin O'Connor6-4/+118
Signed-off-by: Nguyen Anh Quynh Several compile fixes provided by Kevin O'Connor
2008-03-05Add initial support for apmbios code.Kevin O'Connor4-8/+202
2008-03-04Get CDROM emulation working.Kevin O'Connor9-76/+338
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-04Ignore precision specifiers in printf code.Kevin O'Connor1-1/+12
This at least allows the variable to be printed.
2008-03-04Move cdrom code to its own file (cdrom.c).Kevin O'Connor4-276/+305
2008-03-04Initial cd emulation code.Kevin O'Connor3-12/+199
Provides the int13 hooks - still a work in progress.
2008-03-03Initial cdrom support.Kevin O'Connor2-19/+226
2008-03-03Ubuntu workaround found; update TODO.Kevin O'Connor1-2/+0
2008-03-03Don't pass segment to ata_cmd_packet.Kevin O'Connor2-7/+3
The segment is always the stack - so no reason to pass it.
2008-03-03types.h & ata.hKevin O'Connor3-2/+6
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-02Add new item to TODO.Kevin O'Connor1-0/+4
2008-03-02Cleanup start logic in post.Kevin O'Connor1-16/+12
Merge eoi_jmp_post() with check_restart_status() - it makes the logic a little simpler to understand.
2008-03-02use symbols for segment numbersKevin O'Connor1-2/+2
this patch uses symbols for segment numbers in romlayout.S Signed-off-by: Nguyen Anh Quynh
2008-03-02Apply workaround to allow compiling under Ubuntu.Kevin O'Connor2-11/+29
Add make option "AVOIDCOMBINE" that prevent -combine from being used. Ubuntu makes symbols non-global -- have defsyms.py pick them up anyway.
2008-03-02Bug fixes; get mouse working.Kevin O'Connor12-24/+40
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-02Enhance included bios tables.Kevin O'Connor13-63/+134
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-02Minor cleanup of util.hKevin O'Connor1-4/+4
Enable output from DEBUGF macro. Cleanup extended asm args.
2008-03-02Initial support for ps/2 mouse.Kevin O'Connor2-10/+407
The code doesn't work, but most things are present.
2008-03-02Rename PORT_KBD_* to PORT_PS2_*Kevin O'Connor4-38/+38
This change is in preparation for mouse support.
2008-03-01Various minor cleanups.Kevin O'Connor3-3/+7
2008-03-01Add additional int15 handlers for disk drives.Kevin O'Connor2-105/+483
2008-03-01Reduce stack usage in call16().rel-0.1.3Kevin O'Connor2-10/+9
Tell gcc that registers are clobbered instead of using push/popal.
2008-03-01Cleanup implementation of call16().Kevin O'Connor3-16/+18
2008-03-01Minor - reduce stack usage of handle_1587.Kevin O'Connor1-9/+5
2008-03-01Implement basic "eoi_jmp_post" code to post step.Kevin O'Connor2-5/+18
2008-03-01Update TODO notes.Kevin O'Connor1-1/+9
2008-03-01Improve comments in romlayout.SKevin O'Connor1-6/+11
2008-03-01Fix for int15 handlers.Kevin O'Connor1-23/+26
The int 1587 was long jumping to wrong segment. Minor cleanup - breakout handlers better.
2008-03-01Add copyrights to ata.c/h files.Kevin O'Connor2-0/+14
2008-03-01Minor update to bprintf.Kevin O'Connor1-1/+4
Support '%c'. Fix bug causing junk to be printed on unrecognized % code.
2008-03-01Make disk access work.Kevin O'Connor6-331/+324
Several bug fixes. Move ata_detect from disk.c to ata.c.
2008-03-01Fix header guards produced by defsys.pyKevin O'Connor2-9/+26
Issue spotted by Nguyen Anh Quynh
2008-03-01Cleanup of post.cKevin O'Connor1-36/+36
Mostly from suggestions by Nguyen Anh Quynh