Skip to content

Commit

Permalink
Fix macos handler missing ret
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Aug 5, 2023
1 parent 9888b3a commit 0023854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/MacosGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ std::vector<uint8_t> MacosHandlerGenerator::handlerBytes(uint64_t address) {

a.add(RSP, 0x38);

// done!
a.ret();

a.label("handlerPre");
a.write64(reinterpret_cast<uint64_t>(preHandler));

Expand Down

0 comments on commit 0023854

Please sign in to comment.