| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Move sector 1 to 0x8000, so that it will be sector-aligned no matter
what the sector size is (well, as long as it is <= 32K). This avoids
potential conflicts between the 64K "seams" and the sector size.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
As the code operates with paragraph granularity, make sure that
false positives are not possible, though some false negatives
might happen with insanely placed handover area.
Bump low address check to 50h:0, to also avoid bios data area and
remove si == 0 check.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|\ |
|
| |
| |
| |
| | |
There are more labels/constants needed plus I forgot some
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We are comparing DS:SI for a sane range, but we're operating in
paragraph units, so the comparison needs to be done that way, too.
Reported-by: Keshav P.R. <skodabenz@gmail.com>
Debugged-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|/
|
|
|
|
|
|
|
| |
The floppy table patching was somehow messed up when converting to
GPT. The proper offset of FloppyTable at the point we patch is
[di-12] and we use offset +4 inside that field.
Reported-by: Juergen <jlborries@online.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
Split to allow it to be used by debugging/diagnostic images
|