Prepare for supporting LBAs in persitent code

This commit is contained in:
2023-01-25 20:46:26 +01:00
parent b24a9085e1
commit 3851cecd9b
6 changed files with 44 additions and 23 deletions

View File

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