| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Inspired by Gerth and updated from both fdisk list & also from
http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
|
|\
| |
| |
| |
| |
| |
| |
| | |
Resolved Conflicts:
com32/hdt/Makefile
com32/sysdump/Makefile
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move the MCONFIG files into a mk/ directory and give them more
descriptive names.
This is purely a cosmetic change to make the 'include' directives a
bit more coherent by making it obvious exactly which MCONFIG file
we're including. For example, in com32/lua/src/Makefile we exchange
the line,
include ../../MCONFIG
for the much more comprehensible,
include $(MAKEDIR)/com32.mk
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| | |
When using the specific Cyrix call to determine the model, if the model
is unknown, let's consider the generic call was right.
This insure a better display of the model id.
|
| |
| |
| |
| |
| | |
This code add the specific detection code for Cyrix/NSC processor.
Code came from the Linux kernel.
|
| |
| |
| |
| |
| | |
It's safe to manage the unknown cpu as a regular one. This will avoid
weird behavior when CPU isn't well detected.
|
| |
| |
| |
| |
| |
| | |
Without this, cpu_detect(), and set_generic_info() would take 416
seconds on a soekris 4801 and hdt would report ?????????? as the
processor vendor.
|
| |
| |
| |
| | |
This code is useful for many program, let's make it generic.
|
| |
| |
| |
| | |
This is useless and generates confusing outputs
|
| |
| |
| |
| | |
Let's zeroify everything and then init what is different from 0;
|
| |
| |
| |
| | |
The init code was nearly incorrect. Fixed regarding Shao's comments.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This patch allow a program to parse the list of the cpu flags and
retrieve its values, name & comments.
I'd like to thank Shao Miller for helping me doing this code. He was
really helpful and a good support. Thx Shao !
|
| |
| |
| |
| | |
Let's zeroify it at init time.
|
| |
| |
| |
| |
| | |
PUTC() call didn't got caught when using the bufprintf.
We can use the PRINT() macro instead.
|
| |
| |
| |
| | |
Just a simple recasting.
|
| |
| |
| |
| | |
This is useless.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In some conditions, XSDT pointer could be null. In such conditions, we
have to parse tables pointed by RSDP.
This patch remove the table parsing from xsdt to acpi.c.
If the XSDT detection fails, let's switch back to the RSDP entries.
This was the case under KVM whereas VirtualBox features an XSDT.
|
|
|
|
|
| |
This patch adds some correction of the dmi structures but also add the
support of the cpu cores/threads.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Add detection code for DiskCryptor MBR to disklib.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add detection code for "FreeDOS (eXtended FDisk)" MBR to disklib.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add detection code for "MS-DOS 3.30 through Windows 95 (A)" MBR to disklib.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| |
| |
| |
| |
| |
| |
| | |
Add detection code for new Syslinux (normal + isohybrid) MBR to disklib.
Switch old Syslinux MBR and Master Boot LoaDeR detection code.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add detection code for Paragon MBR to disklib.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| | |
|
| |
| |
| |
| | |
Kernel shows this table as APIC, let's do the same
|
| |
| |
| |
| | |
Several adjustements were necessary ;o)
|
| |
| |
| |
| | |
Adding a function to debug & print for ACPI.
|
| |
| |
| |
| | |
This test error was crashing the program.
|
|\ \
| |/
| |
| |
| | |
Conflicts:
com32/hdt/hdt.h
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
In some case, dmi_memory_module_types could read the entire memory as a
result of a bogus snprintf usage.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
As reported by hpa, strlcpy is safer and could prevent some bugs.
So I replaced all strncpy by strlcpy calls.
|
| | |
|
| |
| |
| |
| | |
Malloc requires stdlib
|
|\ \
| |/ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
This commit now save properly VPD's address.
|
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Impact: avoid memory corruption
Too much usage of strcpy & sprintf was leading to serious memory
corruption. Using snprintf & strncpy is prefered.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
A uint8_t can't have values all the way up to 0x12e...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|