Milestone - binary is correctly found in the memory
This commit is contained in:
parent
16e1cbe93e
commit
e4d67cc355
2
runner.c
2
runner.c
@ -17,7 +17,7 @@ void execute_library_function() {
|
|||||||
if (*ptr == LIB_MAGIC) {
|
if (*ptr == LIB_MAGIC) {
|
||||||
printf("Found libpqscheme_test 0x%X!\n", ptr);
|
printf("Found libpqscheme_test 0x%X!\n", ptr);
|
||||||
entry_point = RAM_START + (*(ptr + 1));
|
entry_point = RAM_START + (*(ptr + 1));
|
||||||
entry_point |= 1;
|
entry_point |= 1; // Ensure thumb mod
|
||||||
func_t test_func = (func_t)(entry_point);
|
func_t test_func = (func_t)(entry_point);
|
||||||
if (test_func) {
|
if (test_func) {
|
||||||
printf("Result: %d\n", test_func());
|
printf("Result: %d\n", test_func());
|
||||||
|
Loading…
Reference in New Issue
Block a user