Skip to content

Commit

Permalink
Adjust used based address
Browse files Browse the repository at this point in the history
  • Loading branch information
liona24 committed Sep 18, 2023
1 parent d87bad3 commit de790e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ int main(int argc, char* argv[]) {
if (argc == 2) {
u64 base = strtoull(argv[1], NULL, 16);
L("using supplied kernel base: %llx", base);
u64 diff = base - 0xffffffff80000000ull;
u64 diff = base - 0xffffffff81000000ull;
L("diff: %llx", diff);

#define __x(name) { name += diff; L("corrected %s to %p", #name, (void*)name); }
Expand Down

0 comments on commit de790e6

Please sign in to comment.