mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 05:42:17 +00:00
Update kernel_patches.c
This commit is contained in:
parent
0295c8a51d
commit
57819fa345
1 changed files with 15 additions and 15 deletions
|
@ -30,7 +30,7 @@ typedef struct {
|
|||
/*
|
||||
mov w10, w23
|
||||
lsl x10, x10, #2
|
||||
ldr x10, [x22, x10]
|
||||
ldr x10, [x28, x10]
|
||||
mov x9, #0x0000ffffffffffff
|
||||
and x8, x10, x9
|
||||
mov x9, #0xffff000000000000
|
||||
|
@ -45,24 +45,24 @@ typedef struct {
|
|||
static const uint8_t MAKE_KERNEL_PATTERN_NAME(400, proc_id_send)[] = {0xEA, 0x53, 0x40, 0xF9, 0x48, 0x59, 0x41, 0xF9, 0xE9, 0x03, 0x17, 0x2A, 0x29, 0xF5, 0x7E, 0xD3};
|
||||
static const instruction_t MAKE_KERNEL_HOOK_NAME(400, proc_id_send)[] = {0x2A1703EA, 0xD37EF54A, 0xF86A6ACA, 0x92FFFFE9, 0x8A090148, 0xD2FFFFE9, 0x8A09014A, 0xD2FFFFC9, 0xEB09015F, 0x54000060, 0xF94043EA, 0xF9415948, 0xF94053EA};
|
||||
/*
|
||||
mov x13, #0
|
||||
mov w13, w14
|
||||
lsl x13, x13, #2
|
||||
ldr x13, [x26,x13]
|
||||
mov x9, #0x0000ffffffffffff
|
||||
and x8, x13, x9
|
||||
mov x9, #0xffff000000000000
|
||||
and x13, x13, x9
|
||||
mov x9, #0xfffe000000000000
|
||||
cmp x13, x9
|
||||
beq #8
|
||||
ldr x8, [x25,#0x2b0]
|
||||
nop //needed for the jump
|
||||
ldr x13, [sp,#0x70]
|
||||
mov w10, w14
|
||||
lsl x10, x10, #2
|
||||
ldr x10, [x13, x10]
|
||||
mov x9, #0x0000ffffffffffff
|
||||
and x8, x10, x9
|
||||
mov x9, #0xffff000000000000
|
||||
and x10, x10, x9
|
||||
mov x9, #0xfffe000000000000
|
||||
cmp x10, x9
|
||||
beq #8
|
||||
ldr x8, [x25,#0x2b0]
|
||||
nop
|
||||
*/
|
||||
static const uint8_t MAKE_KERNEL_PATTERN_NAME(400, proc_id_recv)[] = {0x28, 0x5B, 0x41, 0xF9, 0xE9, 0x03, 0x0E, 0x2A, 0xCE, 0x09, 0x00, 0x11, 0x29, 0xF5, 0x7E, 0xD3};
|
||||
static const instruction_t MAKE_KERNEL_HOOK_NAME(400, proc_id_recv)[] = {0xD280000D, 0x2A0E03ED, 0xD37EF5AD, 0xF86D6B4D, 0x92FFFFE9, 0x8A090148, 0xD2FFFFE9, 0x8A0901AD, 0xD2FFFFC9, 0xEB09015F, 0x54000040, 0xF9415B28, 0xD503201F};
|
||||
/*
|
||||
mov w10, w23
|
||||
mov w10, w23
|
||||
lsl x10, x10, #2
|
||||
ldr x10, [x27, x10]
|
||||
mov x9, #0x0000ffffffffffff
|
||||
|
|
Loading…
Reference in a new issue