aboutsummaryrefslogtreecommitdiff
path: root/src/sys/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/core.h')
-rw-r--r--src/sys/core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sys/core.h b/src/sys/core.h
index fa9e1b5..9e25f9d 100644
--- a/src/sys/core.h
+++ b/src/sys/core.h
@@ -1,6 +1,10 @@
#ifndef SYS_CORE_H
#define SYS_CORE_H
+#ifndef SYS_CORE_C
+extern char* os_info_v;
+#endif
+
extern unsigned long cntfrq;
static inline unsigned long load32(unsigned long addr)
@@ -41,6 +45,13 @@ static inline void setsp(void* in)
asm volatile ("mov sp, %0" :: "r"(in));
}
+static inline void* heap_end(void)
+{
+ unsigned long value;
+ asm volatile ("ldr %0, =__bss_end": "=r"(value));
+ return (void*)value;
+}
+
enum
{
// The offset for the MMIO area