From 36cb84b672ea2e62f7ac4d9f94bc0cd23f3306bb Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Fri, 24 May 2024 17:42:42 -0400 Subject: [PATCH] Tweak QEMU Base --- launcher/src/bootstrap.cpp | 2 +- libreborn/include/libreborn/patch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/bootstrap.cpp b/launcher/src/bootstrap.cpp index a9b4ed41..bb9c3197 100644 --- a/launcher/src/bootstrap.cpp +++ b/launcher/src/bootstrap.cpp @@ -186,7 +186,7 @@ void bootstrap() { args.push_back(QEMU_BINARY); // Fix Bug args.push_back("-B"); - args.push_back("0x40000"); // Arbitary Value That Works On My System + args.push_back("0x3e800"); // Arbitary Value (Aligns To 4k And 16k Page Sizes) #endif // Setup Linker diff --git a/libreborn/include/libreborn/patch.h b/libreborn/include/libreborn/patch.h index 5cfd8dc2..83f243ce 100644 --- a/libreborn/include/libreborn/patch.h +++ b/libreborn/include/libreborn/patch.h @@ -20,7 +20,7 @@ void *_overwrite_calls_manual(const char *file, int line, void *start, void *tar #define overwrite_calls_manual(...) \ _overwrite_calls_manual(__FILE__, __LINE__, __VA_ARGS__) template -static void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function &), const overwrite_t &target) { +void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function &), const overwrite_t &target) { std::string ret = set_overwrite(target, [&file, &line](void *start, void *target2) { return _overwrite_calls_manual(file, line, start, target2); });