Skip to content

Commit

Permalink
add support for 7.55
Browse files Browse the repository at this point in the history
  • Loading branch information
therootlord committed May 27, 2021
1 parent 5fdba29 commit 73166dc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kern_orbis.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@ kern_get_offsets(struct kern_offset *kern, unsigned int sw_ver) {
kern->copyout = (void *)(base + K700_COPYOUT);
break;

case 0x750:
case 0x751:
case 0x755:
base = &((unsigned char *)read_msr(0xC0000082))[-K755_XFAST_SYSCALL];
ptr = (unsigned char *)base;
kern->prison0 = (void **)&ptr[K755_PRISON_0];
kern->root_vnode = (void **)&ptr[K755_ROOTVNODE];
kern->copyin = (void *)(base + K755_COPYIN);
kern->copyout = (void *)(base + K755_COPYOUT);
break;

default:
return -1;
}
Expand Down
24 changes: 24 additions & 0 deletions kern_orbis_offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ along with this program; see the file COPYING. If not, see
#define K671_XFAST_SYSCALL 0x000001C0
#define K672_XFAST_SYSCALL 0x000001C0
#define K700_XFAST_SYSCALL 0x000001C0
#define K750_XFAST_SYSCALL 0x000001C0
#define K751_XFAST_SYSCALL 0x000001C0
#define K755_XFAST_SYSCALL 0x000001C0

#define K350_PRISON_0 0x00EF5A00
#define K355_PRISON_0 0x00EF5A00
Expand Down Expand Up @@ -85,6 +88,9 @@ along with this program; see the file COPYING. If not, see
#define K671_PRISON_0 0x0113E518
#define K672_PRISON_0 0x0113E518
#define K700_PRISON_0 0x0113E398
#define K750_PRISON_0 0x0113B728
#define K751_PRISON_0 0x0113B728
#define K755_PRISON_0 0x0113B728

#define K350_ROOTVNODE 0x01963000
#define K355_ROOTVNODE 0x01963040
Expand Down Expand Up @@ -119,6 +125,9 @@ along with this program; see the file COPYING. If not, see
#define K671_ROOTVNODE 0x02300320
#define K672_ROOTVNODE 0x02300320
#define K700_ROOTVNODE 0x022C5750
#define K750_ROOTVNODE 0x01B463E0
#define K751_ROOTVNODE 0x01B463E0
#define K755_ROOTVNODE 0x01B463E0

#define K350_COPYIN 0x003B92A0
#define K355_COPYIN 0x003B96E0
Expand Down Expand Up @@ -153,6 +162,9 @@ along with this program; see the file COPYING. If not, see
#define K671_COPYIN 0x003C17A0
#define K672_COPYIN 0x003C17A0
#define K700_COPYIN 0x0002F230
#define K750_COPYIN 0x0028F9F0
#define K751_COPYIN 0x0028F9F0
#define K755_COPYIN 0x0028F9F0

#define K350_COPYOUT 0x003B9220
#define K355_COPYOUT 0x003B9660
Expand Down Expand Up @@ -187,6 +199,9 @@ along with this program; see the file COPYING. If not, see
#define K671_COPYOUT 0x003C16B0
#define K672_COPYOUT 0x003C16B0
#define K700_COPYOUT 0x0002F140
#define K750_COPYOUT 0x0028F900
#define K751_COPYOUT 0x0028F900
#define K755_COPYOUT 0x0028F900

#define K300_MMAP_SELF_1 0x0
#define K310_MMAP_SELF_1 0x0
Expand Down Expand Up @@ -225,6 +240,9 @@ along with this program; see the file COPYING. If not, see
#define K671_MMAP_SELF_1 0x00233C40
#define K672_MMAP_SELF_1 0x00233C40
#define K700_MMAP_SELF_1 0x001CB8F0
#define K750_MMAP_SELF_1 0x00364D40
#define K751_MMAP_SELF_1 0x00364D40
#define K755_MMAP_SELF_1 0x00364D40

#define K300_MMAP_SELF_2 0x0
#define K310_MMAP_SELF_2 0x0
Expand Down Expand Up @@ -263,6 +281,9 @@ along with this program; see the file COPYING. If not, see
#define K671_MMAP_SELF_2 0x00233C50
#define K672_MMAP_SELF_2 0x00233C50
#define K700_MMAP_SELF_2 0x001CB910
#define K750_MMAP_SELF_2 0x00364D60
#define K751_MMAP_SELF_2 0x00364D60
#define K755_MMAP_SELF_2 0x00364D60

#define K300_MMAP_SELF_3 0x0
#define K310_MMAP_SELF_3 0x0
Expand Down Expand Up @@ -301,6 +322,9 @@ along with this program; see the file COPYING. If not, see
#define K671_MMAP_SELF_3 0x000AD2E4
#define K672_MMAP_SELF_3 0x000AD2E4
#define K700_MMAP_SELF_3 0x001D40BB
#define K750_MMAP_SELF_3 0x000DCED1
#define K751_MMAP_SELF_3 0x000DCED1
#define K755_MMAP_SELF_3 0x000DCED1


struct kexec_ctx {
Expand Down

0 comments on commit 73166dc

Please sign in to comment.