From 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 5 Jan 2022 14:01:29 -0800 Subject: Cleaned up/ Standardized --- src/sys/core.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/sys/core.h') 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 -- cgit v1.2.1