Skip to content

Commit

Permalink
dont do bit shifting before coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekSelander committed Jan 27, 2023
1 parent beaeef1 commit 595a190
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/solution5.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct {
#define S_USER ((uint32_t)(2u << 1))
#define BCR_ENABLE ((uint32_t)(1u))
#define SS_ENABLE ((uint32_t)(1u))
#define BCR_BAS ((uint32_t)(15u << 4))
#define BCR_BAS ((uint32_t)(15u << 5))

static mach_port_t exc_port = MACH_PORT_NULL;
static uintptr_t main_addr = 0;
Expand Down
Binary file modified code/solution5.dylib
Binary file not shown.
2 changes: 1 addition & 1 deletion symbol interposing.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ typedef struct {
#define S_USER ((uint32_t)(2u << 1))
#define BCR_ENABLE ((uint32_t)(1u))
#define SS_ENABLE ((uint32_t)(1u))
#define BCR_BAS ((uint32_t)(15u << 4))
#define BCR_BAS ((uint32_t)(15u << 5))

static mach_port_t exc_port = MACH_PORT_NULL;
static uintptr_t main_addr = 0;
Expand Down

0 comments on commit 595a190

Please sign in to comment.