| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Use malloc code to allocate space for floppy image instead of
searching e820 map - this prevents a possible conflict with memory
allocated by pmm.
Check int 1587 return code.
|
|
|
|
|
|
| |
Fix bug where zones over 2gig may fail to allocate.
Add memalign_high() and use for acpi facs allocation.
Misc code cleanups.
|
|
|
|
|
|
| |
Add defines for several of the codes used in floppy.c.
Also, actually send the gap length in the floppy commands.
Also, adjust count in floppy_cmd instead of all callers.
|
|
|
|
|
| |
Support PCIv3 PMM requests for permanent memory.
Only support permanent high memory requests for now.
|
|
|
|
|
|
|
|
|
|
| |
Most of the cdrom_13 code did the same thing as disk_13 - so merge
them together.
Add definitions for 0xe0 (EXTSTART_CD) and 0x80 (EXTSTART_HD).
This changes the behavior for cdroms on 1315 and 1316 calls -
previously 1315 returned an error and set ah=2, now it sets ah=1
and doesn't return an error; previously 1316 returned ok, not it
returns EPARAM.
|
|
|
|
| |
Handle case where there are no rodata sections.
|
| |
|
|
|
|
|
| |
The cbfs data copy function can determine if the file is compressed on
its own - it doesn't need the iscomp parameter passed in.
|
| |
|
|
|
|
|
|
| |
Add new "ramdisk" type for disk accesses.
Extract out high-mem finding code from pmm into find_high_area().
Fix bug in GDB_BASE and GDT_LIMIT macros (wrong bit shifts).
|
|
|
|
|
| |
Allow callers to track the cbfs_file pointer.
Also, remove obsolete code for brute-force flash scanning.
|
|
|
|
|
| |
Implement low-level floppy commands using the disk_op structure.
The requests can then be filled using the regular disk_13xx functions.
|
|
|
|
|
| |
Merge floppy_1301/1308/1315/1316/_ret() functions with their disk equivalents.
Store floppy type in drives structure.
|
| |
|
|
|
|
|
|
| |
The bootmenu can now reorder the first floppy drive.
Note - only the drive mapping is changed - floppy variables in the BDA
are still set depending on the real floppy index.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Drives.drives list now contains floppies, harddrives, and cdroms.
Add mapping table for external/internal drive ids for floppies.
Rename CONFIG_FLOPPY_SUPPORT to CONFIG_FLOPPY (for consistency).
Be consistent with "driveid" and "floppyid" variable names.
Replace switch statements of drive parameters into a global array.
There are some externally visible changes with this patch:
- Some calls will now return EPARAM instead of ETIMEOUT (or ECHANGED)
- floppy_1301/1308 are now only available when regs->dl is valid
- floppy_1308/1315 return EPARAM on invalid drives
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Move generic code from ata.c to new file block.c.
Rename atabits.h to ata.h and move ata header definitions from disk.h.
Rename ATA.channels to ATA_channels.
Rename ATA structure to Drives.
Support both CONFIG_DRIVES and CONFIG_ATA options.
|
| |
|
|
|
|
|
|
| |
Populate ATA.devices in order of drives found; the array index no
longer correlates with the ATA.channels list.
Add cntl_id to device struct for finding the channel info.
|
|
|
|
|
|
|
|
|
| |
Remove some unused defines.
Rename ATA_TYPE_* to DTYPE_* and move from atabits.h to disk.h.
Rename ATA_TRANSLATION_* to TRANSLATION_* and move from atabits.h to disk.h.
Convert bios is-drive-ready call to use send_disk_op().
Only add atapi devices to the cdmap if they are cd/dvd roms.
Remove 'device' from struct ata_devices_s.
|
| |
|
|
|
|
|
|
|
| |
Don't confuse op->command with low-level ata cmd->command.
Modify __send_disk_op to route commands by drive type.
Add commands for verify and seek operations.
Do ata resets via disk_op also.
|
|
|
|
|
|
| |
Remove the low-level ATA code for short reads on cdroms now that cd
emulation is done at higher-level.
Also, remove sector_count from ebda - ata code updates op->count now.
|
|
|
|
|
|
|
|
|
| |
Add a 2K buffer to the ebda to allow for cdrom 512 byte vs 2048 byte
sector emulation.
For unaliagned cdemu reads, just make multiple cdrom reads instead of
using ata specific code for short reads.
Also, define cdemu virtual sectors using struct chs_s, and update
legacy_lba() func to take pointer to a chs_s struct.
|
|
|
|
|
| |
A 'movl %esp,%ebp' can occur in the preamble - note for proper stack
usage checking.
|
|
|
|
|
|
|
| |
Breakup basic_access() into basic_access, cdemu_access, and legacy_lba.
Also, check for verify and seek calls in __send_disk_op instead of all
callers.
Also, send_disk_op returns sector count in dop.count instead of via ebda.
|
|
|
|
|
|
|
| |
Use cdrom_read() instead of cdrom_read_512() for loading the initial
image. The initial image will always start on a 2K block, and it
should be okay to load extra sectors if the sector count doesn't
end on a 2K boundary.
|
|
|
|
|
| |
New option controls whether or not printf content is also written to
the debug ports.
|
|
|
|
|
|
|
|
|
|
| |
Make sure not to divide by zero when calculating usage percent in
debug messages.
Make sure high memory zones are aligned; make sure zone is big enough
even after loss due to alignment.
Be sure to reset ZoneTmpHigh and PMMAllocs on failure paths.
Fix corner case in pmm_free() where an allocation might not get freed
due to ordering of pmmalloc_s structs.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Complete the initial implementation of PMM.
Default new PMM code to be enabled.
Move malloc code from memmap.c to pmm.c.
Define new malloc zones for PMM (ZoneTmpLow and ZoneTmpHigh).
Change default READ/WRITE_SEG macros to use 32bit pointers (the 16bit
PMM code use "big real" mode and requires 32bit accesses).
Allow pmm allocations to occur during bcv executions also.
Add low-memory clearing before boot.
Also, align the default f-seg memory.
|
| |
|
|
|
|
| |
Add versioning info to initial debug and screen banner output.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Implement irq override support for timer interrupts. This matches what
QEMU+BOCHS has been doing for the latest 8 months, and is also what
real hardware does.
Windows expects this according to Beth Kon.
Based on patch by Jes Sorensen <jes@sgi.com>
|
|
|
|
|
|
|
|
| |
Delay coreboot bios table scan after memory scan and malloc setup is
complete.
Also, fix sign underflow in malloc memory available check.
Add check to ensure high bios area is big enough for zone.
Add more debug info to malloc setup/finalize.
|
|
|
|
|
| |
Add initial code for Post Memory Manager - it's just the stubs for now.
Also, fix PnP entry point not clearing irqs and direction flags.
|
|
|
|
|
|
|
|
|
|
| |
Enhance shadow ram support to enable read/write of option rom area.
This enables support for option roms that modify themselves.
Support copying the roms before enabling shadowing, to work around the
qemu implementation of ram shadowing.
Rename next_rom to RomEnd and export it.
Support locking ram being used for optionroms before booting.
Don't bother and'ing/or'ing 0x59 register - it's usage is well defined.
|
| |
|
|
|
|
|
|
|
|
| |
Add malloc like functions for memory management instead of open-coding
memory reservation in all callers.
Add ability for unused high ram to be returned for general purpose use.
Break up acpi table creation into multiple functions.
Also, move smbios tables into high ram (instead of f-segment).
|
|
|
|
|
|
| |
Instead of copying the bios to temp space and then copying back to
0xf0000, just copy from the permanent location at 0xffff0000.
This should make startup slightly faster.
|
|
|
|
|
| |
Find the vga device with legacy range decoding enabled. This should
allow multiple vga cards in the same machine to work properly.
|
|
|
|
|
|
| |
Verify VGA card vendor is via before supporting via 155f calls.
Add support for future code depending on coreboot board id.
Add code for via VX855 memory size and speed detection.
|
| |
|
|
|
|
|
| |
Rename romlayout16.o to code16.o.
Rename ccode32.o to code32.o.
|
|
|
|
|
|
|
|
| |
Separate out the 18.2Hz timer check into its own code.
Cleanup serial return codes.
Use a real timers for lpt port.
Replace lpt "nop" call with udelay(5).
Move irq_enable() into calls that need it.
|
|
|
|
| |
Can't set the fdpt pointers during init as the ebda might get moved.
|
|
|
|
| |
Cast is needed when pulling pointers or other non-int types.
|