boot0 refactoring
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 10 Dec 2015 19:23:35 +0000 (01:23 +0600)
committerSascha Wildner <saw@online.de>
Thu, 24 Dec 2015 17:14:00 +0000 (18:14 +0100)
commit9aa76eebe61097c5133fa3a1577c14fd824b7e23
tree03fd318c9550ce43c391e950479ef15881130cf8
parent5f115e3b8fa054dfb6e59af424b0946871ca6cc0
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.
sys/boot/pc32/boot0/boot0.S
sys/boot/pc32/bootasm.h