summaryrefslogtreecommitdiff
path: root/core/diskboot.inc
Commit message (Collapse)AuthorAgeFilesLines
* core: Move sector 1 to address 0x8000 so it is alignedH. Peter Anvin2011-04-051-1/+1
| | | | | | | | 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>
* core/diskboot.inc: fix handover area's sanity checksMichal Soltys2011-03-021-4/+6
| | | | | | | | | | | | 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>
* Merge remote branch 'genec/diskboot-comment-for-hpa'H. Peter Anvin2011-03-021-1/+3
|\
| * core/diskboot.inc: Update comments at topGene Cumm2011-01-251-1/+3
| | | | | | | | There are more labels/constants needed plus I forgot some
* | core: When checking for DS:SI validity, we're using paragraph unitssyslinux-4.04-pre8H. Peter Anvin2011-02-201-2/+2
| | | | | | | | | | | | | | | | | | 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>
* | diskboot: correct the patching of the floppy tablesyslinux-4.04-pre7H. Peter Anvin2011-02-061-1/+1
|/ | | | | | | | | 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>
* disk: put a magic at the end of the boot sectorH. Peter Anvin2011-01-251-4/+6
| | | | | | | | | 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>
* diskstart: move writestr_early out of boot sectorH. Peter Anvin2011-01-251-19/+8
| | | | | | | 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>
* core/diskboot.inc: fix bug; Sect1Ptr1_VALGene Cumm2010-12-211-1/+1
|
* core/diskboot.inc: The boot sector code from diskstart.incGene Cumm2010-12-201-0/+444
Split to allow it to be used by debugging/diagnostic images