| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| | |
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>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The function might return CF==0 ("success"), but could
include AH==0 ("no such drive"). This is the case on
at least a number of Dell models. Now we check AH, too.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In an effort to trouble-shoot a problem report on some Dell
models (including an Optiplex GX260), we add further debugging
output to try to find out at which point things go wrong. The
problem units are apparently probing as "drive present" for all
drives, which obviously isn't right.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |/
| |
| |
| |
| |
| | |
By removing the use of #ifdef-#endif blocks.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Put a magic signature at the end of the boot sector, and a backpointer
to the code that contains the pointer to the main code extent. This
is useful for integrity-checking tools, and could help the installer
in the future.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|/
|
|
|
|
|
| |
We can save 8 bytes in the boot sector by moving writestr_early out
and putting the real routine in sector 1.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|
|
|
|
|
|
|
| |
EDD 4 has 16-byte device path information. Make the EDD buffer big
enough to capture that. Note that the location of the device path
checksum actually depends on the device path length information field!
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|
|
|
|
|
|
|
|
| |
Currently, disk_init() can only be called once, and edd_params get
statically initialized to zero. This will change once this function
can be called more than once, and we depend on the pre-initialization
to zero to avoid known BIOS bugs.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|
|
|
| |
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
| |
Apparently some BIOSes (including some Acer Travelmate machines)
require an MBR to start with 0x33; apparently Micro$oft MBRs start
with 33 C0, an alternate coding of the "xorw %ax,%ax" instruction. As
such, follow suit to work on these braindead BIOSes.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
| |
|
|
|
|
| |
Split to allow it to be used by debugging/diagnostic images
|
|
|
|
|
| |
This allows another program to re-use the boot sector and define
different values, once split.
|
|
|
|
| |
Additional note on where it will cost to possibly not protect anything
|
|
|
|
|
|
| |
Sometimes INT13h AH08h kills ES to return info about a "floppy" (since
an unpartitioned HDD might look like a floppy). Also, change to tabs
on previous line.
|
|
|
|
|
|
|
| |
Apparently GNU Make 3.82 mishandles pattern rules with fixed
dependencies, sigh.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
HAS_LOCALBOOT is set unconditionally in config.inc.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In particular, somehow we failed to actually test for DS:SI = 0:0!
This tests both for SI < 16 and DS:SI < 1024. The former of those
tests is a bit iffy and probably should be removed.
This should also be promoted into isohdpfx.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
ld 2.20.51 seems to want the .bss16 explicitly marked (NOLOAD). We do
that for most of the other bss sections, so we might as well.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
|
| |
klibc doesn't have sysconf(), because it involves a hideously
inefficient multiplex. Thus, if _SC_PAGESIZE is not defined, invoke
getpagesize(). Call the routine get_page_size() so it doesn't
conflict on a platform which has both sysconf(_SC_PAGESIZE) and
getpagesize().
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
If we try to open a nonexistent file, free the resulting file
descriptor.
Reported-by: Antonio Carlini <arcarlini@iee.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| | |
Require LABEL keywords in config file.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
|
| |
| |
| |
| |
| |
| | |
Support TEXT and ENDTEXT keywords; ignore the help text.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
|
|/ |
|
|
|
|
| |
We haven't mangled label names for a very long time...
|
|
|
|
|
|
|
|
| |
Actually append the domain name to the end of an unqualified DNS name
like we should have done all along.
Reported-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
Use "extern const char foo[];" for an external symbol rather than
"extern void" (gcc 4.5 fix.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
The best way to access an absolute symbol is "extern const char
foo[];" -- older gccs let you get away with "extern void" but gcc 4.5
chokes on it.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
Add a centralized bitops header <sys/bitops.h> which uses x86 bitops
instructions. This is necessary to keep gcc 4.5 from aborting
compilation due to the inlined code being larger than the non-inlined
version, and well, we should really use the bitops.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \ \
| | | |
| | | |
| | | | |
'genec/sample-make-for-hpa', 'genec/drmk-ver-for-hpa' and 'genec/pxechain-for-hpa'
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that both scenarios are clear (do/do not call timer_cleanup/
timer_init), shorten it to eliminate a needless jmp.
|
| | | |
| | | |
| | | |
| | | | |
Both of these calls will not return if successful
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Certain calls to the PXE stack could potentially remove us from
memory. Revert the INT 1Ch timer to its previous state.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Create two functions, writedecb[23], to output a byte AL as fixed with of
2 or 3 characters wide, 0 prepend
If all of the DOS Serialnumber is 0, don't bother with printing anything.
|
| | | | |
|