git: boot0 refactoring

Sascha Wildner swildner at
Thu Dec 24 09:48:06 PST 2015

commit 9aa76eebe61097c5133fa3a1577c14fd824b7e23
Author: Alexander Kuleshov <kuleshovmail at>
Date:   Fri Dec 11 01:23:35 2015 +0600

    boot0 refactoring
    The patch provides refactoring for the sys/boot/pc32/boot0.S
    assembly file to imrove readability and comprehensibility of
    assembly code.
    The main changes are:
    Two new symbols added: the _SECTOR_FIELD_OFF which provides
    offset for the 'sector' field in CHS and the _DATA_OFF which
    provides offset for the boot0 data from the partition table.
    We can use these symbols instead of magic numbers in the code.
    The second change is updating comments in some place.
    The patch was tested as in virtual machine as in real hardware.

Summary of changes:
 sys/boot/pc32/boot0/boot0.S | 35 +++++++++++++++++++++--------------
 sys/boot/pc32/bootasm.h     |  2 +-
 2 files changed, 22 insertions(+), 15 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list