mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
[ion] Exam mode: add assertion
This commit is contained in:
committed by
LeaNumworks
parent
2ccdc2d0dc
commit
9d154e4e97
@@ -50,6 +50,7 @@ size_t firstOneBitInByte(int i) {
|
||||
uint8_t * SignificantExamModeAddress() {
|
||||
uint32_t * persitence_start_32 = (uint32_t *)&_exam_mode_buffer_start;
|
||||
uint32_t * persitence_end_32 = (uint32_t *)&_exam_mode_buffer_end;
|
||||
assert(persitence_end_32 - persitence_start_32 % 4 == 0);
|
||||
while (persitence_start_32 < persitence_end_32 && *persitence_start_32 == 0x0) {
|
||||
// Scan by groups of 32 bits to reach first non-zero bit
|
||||
persitence_start_32++;
|
||||
|
||||
Reference in New Issue
Block a user