diff options
author | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
commit | 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (patch) | |
tree | 9d9a6f92f9d74001e969d23ea79ad26f6227fea2 /src/sys/core.h | |
parent | f3ea4cd0c22f351d8dfffb0e937194c4b526b665 (diff) |
Cleaned up/ Standardized
Diffstat (limited to 'src/sys/core.h')
-rw-r--r-- | src/sys/core.h | 11 |
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 |