Support writing LBA information into main file

This commit is contained in:
Björn Gaier
2023-02-03 13:22:17 +01:00
parent aeb09855ff
commit bc6e483bcf
7 changed files with 97 additions and 47 deletions

View File

@@ -1,9 +1,9 @@
#ifndef __JABYENGINE_AUTO_LBA_DECLARATION_HPP__
#define __JABYENGINE_AUTO_LBA_DECLARATION_HPP__
extern const JabyEngine::AutoLBAEntry lba[];
extern const volatile JabyEngine::AutoLBAEntry lba[];
#define __declare_lba_header(enum_struct) \
[[gnu::used]] \
const JabyEngine::AutoLBAEntry __section(".header.lbas") lba[static_cast<int>(enum_struct::EndOfRequest)] = {0}
const volatile JabyEngine::AutoLBAEntry __section(".header.lbas") lba[static_cast<int>(enum_struct::EndOfRequest)] = {0}
#endif //!__JABYENGINE_AUTO_LBA_DECLARATION_HPP__