aboutsummaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)AuthorFilesLines
2019-11-18support smbioskaihuan.pkh1-1/+2
alloc buffer in fseg memory and fill it with smbios anchor and tables which read from the fw_cfg, then check type0 table and rebuild it if it's not exist. mainly inspired by the seabios, and borrowed some code from it. Reviewed-by: Ben Luo <luoben@linux.alibaba.com> Signed-off-by: kaihuan.pkh <kaihuan.pkh@alibaba-inc.com>
2019-07-25remove pflash codePaolo Bonzini1-1/+0
Also part of the cbfs support which is now obsolete. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-07-24implement mptable generationSergio Lopez1-0/+1
This is specially useful for machines lacking ACPI. Signed-off-by: Sergio Lopez <slp@redhat.com>
2019-07-24support machines without PCISergio Lopez1-2/+5
Instead of panicing when a PCI bus isn't found, continue booting without PCI nor ACPI initialization. Signed-off-by: Sergio Lopez <slp@redhat.com>
2019-07-24do not mix tabs and spaces in a single filePaolo Bonzini1-1/+1
2019-07-22drop cbfs experimentPaolo Bonzini1-15/+4
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-07-12bug fix for setup_idt开恒1-1/+1
the setup_idt() has not configured default ISR for all interrupt. CPU lookup IVT and set 0x0:0x0 (cs:ip) as interrupt handler entry when received an unexpected interrupt which not setup ISR via set_realmode_int in setup_idt(). howerver, the 0x0:0x0 point to IVT-self and executing it caused invalid opcode exception, which the interrupt vector is 6, and the handler bios_intfake not fixing this problem, this makes CPU run into a infinite loop.
2018-10-24main: Add firmware start benchmarking pointSamuel Ortiz1-0/+4
We use a different IO port than the Linux boot benchmarking point. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-03-30qboot: enable mmconfigYang Zhong1-3/+14
Need to enable mmconfig in qboot and also need to reserve mmconfig space in bios. Signed-off-by: Yang Zhong <yang.zhong@intel.com> Message-Id: <1490869973-4562-1-git-send-email-yang.zhong@intel.com> [Do not affect e820 memory map on i440FX chipset. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-09-06use fw_cfg_read_entryPaolo Bonzini1-2/+1
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-29put main at beginning of binary on older compilersPaolo Bonzini1-1/+1
Reported-by: David Halls (via github) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-25boot multiboot from fw_cfgPaolo Bonzini1-1/+1
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-25setup PCI devicesPaolo Bonzini1-0/+1
setup interrupt line, PCI bridges, and IDE devices Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-25initialize the southbridgePaolo Bonzini1-64/+6
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-25load ACPI tables from fw_cfgPaolo Bonzini1-2/+2
2015-05-21not necessaryPaolo Bonzini1-2/+0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21fix KVM e820 and initrdPaolo Bonzini1-2/+11
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21initial support for cbfsPaolo Bonzini1-2/+1
pflash isn't ideal because there's only 8MB room, but it's a start and it's fast. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21initial support for pflash / cbfsPaolo Bonzini1-1/+23
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21add mallocPaolo Bonzini1-8/+16
Allocate the e820 map in the E-segment. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21build e820 entries for low RAMPaolo Bonzini1-2/+12
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21parse vmlinuz inside firmwarePaolo Bonzini1-1/+1
This will make it possible to load the vmlinuz from CBFS. We need some contortions because QEMU splits the real mode and protected mode parts of vmlinuz in different fw_cfg files. The parsing code is lifted from QEMU. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21boot the kernelPaolo Bonzini1-1/+1
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21initial fw_cfg supportPaolo Bonzini1-1/+18
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21setup picPaolo Bonzini1-0/+24
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21setup idtPaolo Bonzini1-0/+19
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-05-21make a bootable BIOSPaolo Bonzini1-0/+49
includes source from kvm-unit-tests Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>