Execute from RAM
This commit is contained in:
4
runner.c
4
runner.c
@@ -2,7 +2,7 @@
|
||||
#include <platform/printf.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define RAM_START 0x00300000
|
||||
#define RAM_START 0x20000000
|
||||
#define RAM_END RAM_START + 0x00800000
|
||||
#define LIB_MAGIC 0x88DAD0F2
|
||||
|
||||
@@ -37,7 +37,7 @@ void execute_library_function() {
|
||||
printf(">> %d\n", test_func());
|
||||
}
|
||||
*/
|
||||
uint32_t entry_point = 0x300044 | 1;
|
||||
uint32_t entry_point = (0x20000000 + 0x44) | 1;
|
||||
func_t test_func = (func_t)entry_point;
|
||||
printf("> Entry point\n", entry_point);
|
||||
int res = test_func();
|
||||
|
||||
Reference in New Issue
Block a user