| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Impact: Changing units
Processor voltage is now millivolts
|
| |
|
|
|
|
| |
Impact: Adding L1 & L2 cache detection
Adding L1 & L2 cache detection
|
| |
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
Impact: sync with linux kernel
cpu flags are now in sync with the linux kernel. Too many flags were
missing.
|
| |
|
|
|
|
| |
Impact: visual
Running Nindent on gpllib / gplinclude
|
| |
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
Ralf Carl reports some garbage in the DMI type 6 output. It appears
that some output formatting wasn't quite right.
This should close #22.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
|
|
|
|
|
|
| |
Impact: Avoid misdetection of dmi version
On some hosts, the legacy DMI version is reported as 0.0.
We can use SMBIOS to get the real version.
Solves HDT's ticket #8
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Impact: Hardware virtualization is now detected
Minor update to detect vmx & svm cpu flags
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This simplifies buffer handling.
Misc.: clean some old error code handling.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
com32/hdt/hdt-cli-disk.c
com32/hdt/hdt-common.h
com32/hdt/hdt-menu-disk.c
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Given an (active) partition, look for a bootloader ID.
Syslinux prints a string (SYSLINUX or EXTLINUX) between bytes
3 and 10.
After some random tests, it seems that Windows™98/98SE and Windows™ME
put MSWIN4.1 at the same place. Internet seems to confirm it:
http://www.geocities.com/thestarman3/asm/mbr/MSWin41BRinHexEd.htm
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
We had forgotten to update the #define when renaming the file.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
bootloaders.c really inspects the MBR, not the bootloader itself.
Let's not confuse the two of them.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Syslinux and Master Boot LoaDeR share the first 2 bytes. Use one more
to distinguish between the two of them.
To keep standards types, uint16_t is being replaced by uint32_t.
The extra byte is not used yet.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
struct driveinfo is defined in disk/geom.h.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
The id is of the form 0xABCD: use uint16_t instead of int.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The first two bytes of the hard drive can help identifying the boot code
installed in the MBR.
Values from the boot_info_script:
http://sourceforge.net/projects/bootinfoscript/
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The Syslinux build turns on -Wwrite-strings, which gives string constants
the type const char[length].
Note: -Wall doesn't trigger this warning.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
In d1890409251949b80c2026557b9b12ca00d55144, it seems we
have forgotten to update util.h.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
It seems that the cpuid.h had a misplaced #endif.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
swsusp detection needs PAGE_SIZE. cpuid.h is actually already defining it.
Since both swsusp and cpuid are taken from the Linux kernel, it is a good idea to
share it (they really need to be equal).
We are going to rely on cpuid.h. Creating a page.h for this single definition seems
overkilling and the MMU is part of the CPU on x86 anyways.
Impact: fix compiler warning (redefinition).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |/
|
|
|
|
|
|
| |
This simplifies buffer handling.
Misc.: clean some old error code handling.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
typedefs are evil but useful for function pointers as it makes them more
readable and maintainable.
This fixes a bug by the way: we had
void *callback(struct driveinfo *, struct part_entry *, int, int)
where we should have had
void (*callback)(struct driveinfo *, struct part_entry *, int, int)
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
|
|
|
|
|
|
|
| |
The disklib interfaces have changed (errno_disk introduced). Update
these changes in hdt (nobody else use them).
Misc: fix get_error declaration.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
|
|
|
|
|
|
| |
* Fix header files due to previous commit
* Prefix disk errnos with ED to avoid conflicts with classic errno
* Fix swsusp code to use errno_disk
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |
|
|
|
|
|
| |
Get rid of the error pointer and use a errno-like error reporting mechanism.
Intent is to make these more like the standard read/write system calls.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
com32/cmenu/libmenu/com32io.h
com32/gplinclude/dmi/dmi.h
com32/gplinclude/dmi/dmi_base_board.h
com32/gplinclude/dmi/dmi_memory.h
com32/gplinclude/dmi/dmi_system.h
com32/gpllib/dmi/dmi.c
com32/gpllib/dmi/dmi_memory.c
com32/include/sys/pci.h
com32/lib/pci/scan.c
com32/modules/Makefile
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/vpd/vpd.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_system.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_processor.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_memory.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_ipmi.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_chassis.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_bios.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_battery.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi_base_board.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/dmi/dmi.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically reformat com32/gplinclude/cpuid.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
into mainline
Conflicts:
com32/hdt/hdt-cli-pci.c
com32/hdt/hdt-cli-vesa.c
com32/hdt/hdt-common.c
com32/hdt/hdt-menu-dmi.c
|
| | | |
| | |
| | |
| | | |
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Impact: fix build
HARDWARE_SECURITY_SIZE is used by DMI Type 24.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
From SMBIOS spec (v2.6.1):
This structure describes the system-wide hardware security settings.
Note: This structure type was added for specification v2.2.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
After some testing on a X200, it appears that the OEM Strings can be quite long
(~200 chars on the X200). Let's be quite generous on that one.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
From SMBIOS spec (v2.6.1):
This structure contains free form strings defined by the OEM. Examples of this
are: Part Numbers for Reference Documents for the system, contact information
for the manufacturer, etc.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
obsolete) (dmi)
From SMBIOS spec (v2.6.1):
The information in this structure defines the attributes of devices that are
onboard (soldered onto) a system element, usually the baseboard. In general, an
entry in this table implies that the BIOS has some level of control over the
enabling of the associated device for use by the system.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
From SMBIOS spec (v2.6.1):
This structure describes whether Automatic System Reset functions enabled
(Status). If the system has a watchdog Timer and the timer is not reset (Timer
Reset) before the Interval elapses, an automatic system reset will occur. The
system will re-boot according to the Boot Option. This function may repeat until
the Limit is reached, at which time the system will re-boot according to the
Boot Option at Limit.
Note: This structure type was added for specification v2.2.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
From SMBIOS spec (v.2.6.1):
This structure contains information required to configure the base board’s
Jumpers and Switches.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|