boot: put placeholder LBA_TEST_OFFSET if no ISFATx define

This commit is contained in:
C. Masloch 2021-07-29 13:13:56 +02:00 committed by Kenneth J Davis
parent edfb0db758
commit 4c2bda46b2

View File

@ -425,6 +425,11 @@ read_next:
%define LBA_TEST_OFFSET 179h
%elifdef ISFAT16
%define LBA_TEST_OFFSET 176h
%else
%define LBA_TEST_OFFSET 0
; Just a placeholder, so the proper error message
; will be shown when assembling without either
; of the ISFATx defines.
%endif
%if ($ - Entry) != LBA_TEST_OFFSET
%error Must update constant offset (LBA_TEST_OFFSET) to test dl,dl here and in sys.c for FATFS