2 Commits

Author SHA1 Message Date
eyck e0807b8cdd moves to-/fromhost declaration into platform 2025-04-14 17:00:41 +02:00
eyck 8cb34baacf moves to-/fromhost past the end of the RAM 2025-04-14 16:34:10 +02:00
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -178,7 +178,7 @@ SECTIONS
PROVIDE( _sp = . ); PROVIDE( _sp = . );
} >ram AT>ram :ram } >ram AT>ram :ram
PROVIDE( tohost = 0xfffffff0 ); PROVIDE( tohost = . );
PROVIDE( fromhost = 0xfffffff8 ); PROVIDE( fromhost = . + 8 );
} }
+3
View File
@@ -22,6 +22,9 @@
#include <stdint.h> #include <stdint.h>
extern volatile uintptr_t tohost;
extern volatile uintptr_t fromhost;
void init_pll(void); void init_pll(void);
unsigned long get_cpu_freq(void); unsigned long get_cpu_freq(void);
unsigned long get_timer_freq(void); unsigned long get_timer_freq(void);
+1
View File
@@ -3,6 +3,7 @@
#include "weak_under_alias.h" #include "weak_under_alias.h"
//#include <stdint.h> //#include <stdint.h>
#include <unistd.h> #include <unistd.h>
#include <stdint.h>
#if defined(SEMIHOSTING) #if defined(SEMIHOSTING)
#include "semihosting.h" #include "semihosting.h"
#endif #endif