aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
Commit message (Collapse)AuthorAgeFilesLines
...
* | ACPI: Fixing pointer arithmeticErwan Velu2011-01-268-29/+50
| | | | | | | | Several adjustements were necessary ;o)
* | ACPI: Adding DEBUG_PRINTErwan Velu2011-01-253-0/+19
| | | | | | | | Adding a function to debug & print for ACPI.
* | ACPI: Fixing SSDT detectionErwan Velu2011-01-251-1/+1
| | | | | | | | This test error was crashing the program.
* | Merge branch 'master' into chouffeErwan Velu2011-01-259-362/+366
|\| | | | | | | | | Conflicts: com32/hdt/hdt.h
| * disklib: remove improper "inline"H. Peter Anvin2010-11-141-2/+2
| | | | | | | | | | | | | | Remove improper inlines from static functions which cause gcc 4.5 to abort due to inlining failure. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * DMI: Fixing memory mgmnt in dmi_memory_module_typesLaurent Licour2010-07-072-14/+16
| | | | | | | | | | In some case, dmi_memory_module_types could read the entire memory as a result of a bogus snprintf usage.
| * disklib: Add WEE bootloader detection codeGert Hulselmans2010-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WEE, is a bootloader based on grub4dos. It fits in the first 63 sectors of the drive. The first 4 bytes are: $ hexdump -n 4 /media/Data/ubcd-new/wee-2010-06-20/wee63.mbr 0000000 5eeb 0090 0000004 Or in the format get_mbr_string wants it: $ hexdump -C -n 4 wee63.mbr 00000000 eb 5e 90 00 Patch tested in qemu: qemu -boot d -cdrom hdt.iso -hda wee-2010-06-20/wee63.mbr
| * Replacing strncpy by strlcpyErwan Velu2010-06-227-346/+346
| | | | | | | | | | As reported by hpa, strlcpy is safer and could prevent some bugs. So I replaced all strncpy by strlcpy calls.
* | ACPI: On the road to cleaning ;)Erwan Velu2011-01-259-34/+35
| |
* | Adding stdlib includeErwan Velu2010-05-261-0/+1
| | | | | | | | Malloc requires stdlib
* | Merge branch 'master', remote branch 'origin' into chouffeErwan Velu2010-05-267-155/+176
|\|
| * Merge remote branch 'erwan/master'H. Peter Anvin2010-05-111-1/+1
| |\
| | * VPD: Fixing base_addressErwan Velu2010-05-111-1/+1
| | | | | | | | | | | | This commit now save properly VPD's address.
| * | Merge remote branch 'erwan/master'H. Peter Anvin2010-05-112-100/+167
| |\|
| | * DMI: Fixing memory corruptionErwan Velu2010-05-062-100/+167
| | | | | | | | | | | | | | | | | | | | | Impact: avoid memory corruption Too much usage of strcpy & sprintf was leading to serious memory corruption. Using snprintf & strncpy is prefered.
| * | gpllib: fix call to CPUID function 4Sebastian Herbszt2010-03-291-2/+4
| | | | | | | | | | | | | | | | | | | | | Only call CPUID function 4 if cpuid_level indicates its availability. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dmi_processor.c: remove unreachable table valuesH. Peter Anvin2010-01-101-50/+2
| | | | | | | | | | | | | | | | | | A uint8_t can't have values all the way up to 0x12e... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | disk/bootloaders.c: fix bogus const in get_bootloader_string()H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | get_bootloader_string() takes a mutable first argument; the call chain does have call paths on which this argument will be modified. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | disk/ata.c: fix signedness weirdness in ata_id_c_string()H. Peter Anvin2010-01-101-1/+1
| |/ | | | | | | | | | | Fix signedness weirdness in ata_id_c_string(), thus killing a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | acpi: Fixing MADT corruptionErwan Velu2009-12-071-29/+6
| | | | | | | | | | | | | | Impact: avoid corruption in MADT tables We have to read local apic address & flags before reading the apic structures
* | acpi: Adding madt apic structuresErwan Velu2009-12-041-13/+98
| | | | | | | | | | | | | | | | Impact: Adding more madt apic structures Adding IO_APIC, INTERRUPT_SOURCE_OVERRIDE, NMI, LOCAL_APIC_NMI_STRUCTURE, LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE, IO_SAPIC, LOCAL_SAPIC
* | acpi: Adding FACS, fixing DSDT detectionErwan Velu2009-12-043-59/+197
| | | | | | | | | | | | Impact: Adding FACS, fixing DSDT detection Adding FACS, fixing DSDT detection via FADT
* | acpi: Filling FADT structureErwan Velu2009-12-041-0/+49
| | | | | | | | | | | | Impact: completing FADT implementation Filling FADT structure
* | acpi: Adding ecdtErwan Velu2009-12-042-1/+58
| | | | | | | | | | | | Impact: Addding ecdt Adding ecdt
* | acpi: Adding SBSTErwan Velu2009-12-042-0/+51
| | | | | | | | | | | | Impact: Adding SBST Adding SBST
* | acpi: Using definitions for table namesErwan Velu2009-12-045-15/+15
| | | | | | | | | | | | Impact: none Using more definitions for ACPI tables names
* | acpi: Adding SSDT & PSDTErwan Velu2009-12-042-2/+29
| | | | | | | | | | | | Impact: Adding SSDT & PSDT Adding SSDT & PSDT
* | acpi: Adding dsdtErwan Velu2009-12-041-1/+9
| | | | | | | | | | | | Impact: Adding dsdt Adding DSDT
* | acpi: Fixing madt detectionErwan Velu2009-12-044-45/+36
| | | | | | | | | | | | Impact: Fixing madt detection Fixing madt detection
* | acpi: Adding FADTErwan Velu2009-12-042-1/+59
| | | | | | | | | | | | Impact: Adding FADT Adding FADT
* | acpi: Adding xsdtErwan Velu2009-12-044-12/+83
| | | | | | | | | | | | Impact: Adding XSDT Adding XSDT
* | acpi: Adding missing rsdt.cErwan Velu2009-12-041-0/+52
| | | | | | | | | | | | Impact: addding missing file Adding missing rsdt.c file
* | acpi: Adding rsdt, cleaning structuresErwan Velu2009-12-043-10/+29
| | | | | | | | | | | | Impact: adding rsdt Adding RSDT
* | acpi: Return success valueErwan Velu2009-12-041-0/+2
| | | | | | | | | | | | Impact: defining a success return value Success have to return a defined value
* | acpi: Fixing parsingErwan Velu2009-12-043-42/+102
| | | | | | | | | | | | | | Impact: none Parsing have to be done the spec says ;) Let's found the RSDP first
* | acpi: Adding MADT addressErwan Velu2009-12-041-9/+12
| | | | | | | | | | | | Impact: Adding MADT address in structure
* | acpi: more work on the madt structuresErwan Velu2009-12-042-68/+132
| | | | | | | | | | | | Impact: under dev. Fixing madt structure & parsing
* | acpi: Fixing MADT structuresErwan Velu2009-12-041-9/+24
| | | | | | | | | | | | Impact: Fixing MADT structures Fixing MADT structures
* | acpi: Initial stuff to find madtErwan Velu2009-12-042-1/+105
|/ | | | | | Impact: adding madt stuff Trying to add some madt stuff
* dmi: Switching processor voltage from V to mVErwan Velu2009-12-041-6/+6
| | | | | | Impact: Changing units Processor voltage is now millivolts
* dmi: more chassis typesErwan Velu2009-12-041-2/+6
| | | | | | Impact: more chassis types More DMI chassis types
* dmi: returning out of spec instead of NULLErwan Velu2009-12-041-1/+1
| | | | | | Impact: avoid null string It's better returning out of spec instead of null
* dmi: More processorsErwan Velu2009-12-041-2/+49
| | | | | | Impact: More processors More processors in the DMI table
* dmi: More cpu upgrade optionsErwan Velu2009-12-041-2/+2
| | | | | | Impact: many cpu upgrade were set out of spec Fixing stupid typo which prevent cpu upgrade options to be shown
* cpuid: Adding L1 & L2 cache detectionErwan Velu2009-12-041-1/+51
| | | | | | Impact: Adding L1 & L2 cache detection Adding L1 & L2 cache detection
* cpuid: Adding cpu core detectionErwan Velu2009-12-041-2/+23
| | | | | | Impact: we are now able to detect the number of cpu cores We can detect the number of cores using cpuid(4) or cpuid_ecx(0x80000008)
* cpuid: Adding more flagsErwan Velu2009-12-041-0/+51
| | | | | | | Impact: sync with linux kernel cpu flags are now in sync with the linux kernel. Too many flags were missing.
* gpllibs: Running NindentErwan Velu2009-11-2415-1433/+1894
| | | | | | Impact: visual Running Nindent on gpllib / gplinclude
* memory: Commenting workaroundroot2009-11-231-1/+7
| | | | | | | | Impact: none HDT is using a memory detection code which duplicates some syslinux code. Once addr_t will be moved into 64bit, this can be removed by using syslinux_scan_memory().
* memory: Adding memory size detectionErwan Velu2009-11-231-0/+226
| | | | | | | | | | | | | | | Impact: allow com32 module to detect the amount of memory installed This commit adds several function: sanitize_e820_map() to generate a new e820 map that doesn't have overlaping memsize_e820() to detect the available memory (in KB) detect_memsize() to detect the amount of memory by using e820/e801/e88. It first try to detect the memory via e820. If it fails, it uses e801 as fallback. If this e801 fails, e88 is used.