summaryrefslogtreecommitdiff
path: root/include/defs.h
diff options
context:
space:
mode:
author0x221E <0x221E@0xinfinity.dev>2026-06-11 20:10:31 +0200
committer0x221E <0x221E@0xinfinity.dev>2026-06-11 20:11:56 +0200
commit6d559b7e50dbab428d324b4ddaed9db7a8ced887 (patch)
treec2e807a19d2d0b6054e13a6d3ece16750796198d /include/defs.h
downloadtmpbootloader-master.tar.gz
initial commitHEADmaster
Diffstat (limited to 'include/defs.h')
-rw-r--r--include/defs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/defs.h b/include/defs.h
new file mode 100644
index 0000000..9932af1
--- /dev/null
+++ b/include/defs.h
@@ -0,0 +1,14 @@
+#ifndef DEFS_H
+#define DEFS_H
+
+#ifdef STAGE1
+ #define BLSEC_TEXT __attribute__((section(".stage1.text")))
+ #define BLSEC_DATA __attribute__((section(".stage1.data")))
+#elif STAGE2
+ #define BLSEC_DATA __attribute__((section(".stage2.data")))
+ #define BLSEC_DATA __attribute__((section(".stage2.data")))
+#else
+ #error "You must define a stage to compile the libraries!"
+#endif
+
+#endif // DEFS_H