git: boot0 refactoring
swildner at crater.dragonflybsd.org
Thu Dec 24 09:48:06 PST 2015
Author: Alexander Kuleshov <kuleshovmail at gmail.com>
Date: Fri Dec 11 01:23:35 2015 +0600
The patch provides refactoring for the sys/boot/pc32/boot0.S
assembly file to imrove readability and comprehensibility of
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