| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Figure out memory size once at startup and save in a variable.
Change all run-time locations to use that variable instead of
re-detecting memory size.
|
|
|
|
|
| |
Several minor comment improvements.
Rearrange some definitions to make them more clear.
|
|
|
|
|
| |
Clean up some warnings.
Make sure floppy_dbt structure is aliagned to 1 byte boundary.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Rename EBDA_SEG to SEG_EBDA - it is more consistent with other defs.
Introduce SEG_BDA definition and use it instead of 0x0000 wherea appropriate.
Move ACPI_DATA_SIZE to CONFIG_ACPI_DATA_SIZE and move to config.h
Use an alias (PORT_HD_DATA) for io port 0x03f6.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't back up all registers on isr handlers - they don't read/modify
them. This saves stack space.
extended_bios_data_area_s must be packed to match ebda spec.
Enable irqs on int 08 - follows old bochs bios code.
Fix bug in int 76 -- should clear disk_interrupt_flag not
floppy_harddisk_info.
Make sure we alert in disk_ret on failure case.
int 18/19 entry points need to setup cld/%ds too.
asm in handle_1587 clobbers flags - note that in clobber list.
|
|
|
|
| |
The asm was setting regs->cx to zero - use a temp variable to avoid that.
|
|
|
|
|
| |
Wrap comparison must be done with 16bit values.
Must use 16bit form of lgdt instruction.
|
|
|
|
|
|
| |
Clean up by moving code from handle_15e820 to set_e820_range.
Set ES explicilty prior to populating the map - the code was relying
on nothing changing it.
|
|
|
|
|
|
| |
Calling debug_exit at the end of a call doesn't help much - several of
the registers are already clobbered at this point. It also increases
stack usage because it prevents call tail optimization in many places.
|
|
|
|
|
| |
Use "string ops" to simplify port accesses.
Always run "cld" on entry to C code.
|
|
|
|
|
|
| |
Improve some debugging messages.
Minor code clean ups.
Improve apmbios entry points (still untested).
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
This reverts commit 3d029417164e9a6dffee491fb061de3de6d85595.
Conflicts:
src/post.c
|
|
|
|
|
|
| |
This patch uses symbols for E820 memory types (system.c)
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
VISIBLE16 is used to mark functions externally available in 16bit code.
VISIBLE32 is for 32bit functions.
|
|
|
|
|
|
| |
Signed-off-by: Nguyen Anh Quynh
Several compile fixes provided by Kevin O'Connor
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This change is in preparation for mouse support.
|
| |
|
|
|
|
|
| |
The int 1587 was long jumping to wrong segment.
Minor cleanup - breakout handlers better.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|