Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel: split GetProcInformation driver ioctl #163

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions external/freebsd-headers/include/sys/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -572,19 +572,26 @@ struct proc {
struct dynlib *p_dynlib; /* Sony Dynlib info */

// extra stuff
char p_unk348[0x48];
char p_titleid[10]; // 0x390
char p_unk39a[0x3A];
char p_contentid[64]; // 0x3d4

#if MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_650
char p_unk348[0x104];
char p_unk414[0x38];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_600
char p_unk348[0x100];
char p_unk414[0x34];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_550
char p_unk348[0x104];
char p_unk414[0x38];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_500
char p_unk348[0x0FC];
char p_unk414[0x30];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_455
char p_unk348[0x0F4];
char p_unk414[0x28];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_400
#error Reverse this struct proc portion for 4.00
char p_unk348[0x0A0];
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_355
#error Reverse this struct proc portion for 3.55
char p_unk348[0x090];
#endif

Expand Down Expand Up @@ -655,6 +662,21 @@ static_assert(offsetof(struct proc, p_unk338) == 0x338, "unk338 start incorrect"
static_assert(offsetof(struct proc, p_dynlib) == 0x340, "dynlib start incorrect");
static_assert(offsetof(struct proc, p_magic) == 0x44C, "struct start incorrect");
#endif
#if MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_650
static_assert(sizeof(struct proc) == 0xB68, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_600
static_assert(sizeof(struct proc) == 0xB60, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_550
static_assert(sizeof(struct proc) == 0xB68, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_500
static_assert(sizeof(struct proc) == 0xB60, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_455
static_assert(sizeof(struct proc) == 0xB50, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_400
static_assert(sizeof(struct proc) == 0xAF8, "");
#elif MIRA_PLATFORM >= MIRA_PLATFORM_ORBIS_BSD_355
static_assert(sizeof(struct proc) == 0xAE8, "");
#endif

#define p_session p_pgrp->pg_session
#define p_pgid p_pgrp->pg_id
Expand Down
Loading