Initial commit

This commit is contained in:
Gericom
2025-11-22 11:08:28 +01:00
commit 9cf3ffbfcf
358 changed files with 58350 additions and 0 deletions

9
common/sections.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#define DEFINE_SECTION_SYMBOLS(sectionName) \
extern u8 __start_##sectionName[]; \
extern u8 __stop_##sectionName[]
#define SECTION_START(sectionName) ((void*)__start_##sectionName)
#define SECTION_END(sectionName) ((void*)__stop_##sectionName)
#define SECTION_SIZE(sectionName) ((u32)__stop_##sectionName - (u32)__start_##sectionName)