Milestone - binary is correctly found in the memory

This commit is contained in:
Kris Kwiatkowski 2025-02-18 22:16:59 +00:00
parent 16e1cbe93e
commit e4d67cc355

View File

@ -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());