Compare commits

...

2 Commits

3 changed files with 6 additions and 2 deletions

4
env/iss/link.lds vendored
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
env/iss/platform.h vendored
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);

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