This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/xerpi/GhidraVitaLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ecba9fec7aa4bac172addd78a468a87b06b5b0da Mon Sep 17 00:00:00 2001 | |
From: Sergi Granell <xerpi.g.12@gmail.com> | |
Date: Wed, 19 Dec 2018 19:04:27 +0100 | |
Subject: [PATCH] arm: Add initial PSVita support | |
Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com> | |
--- | |
arch/arm/Kconfig | 2 ++ | |
arch/arm/Kconfig.debug | 23 ++++++++++--- | |
arch/arm/Makefile | 1 + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import re | |
def usage(): | |
print("idc-offset by xerpi") | |
print("Usage:\n\t" + sys.argv[0] + " new_text_addr new_data_addr") | |
def patch_idc(idc, new_text_addr, new_data_addr): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <psp2kern/kernel/modulemgr.h> | |
#include <psp2kern/kernel/threadmgr.h> | |
#include <psp2kern/kernel/sysmem.h> | |
#include <psp2kern/kernel/cpu.h> | |
#include <psp2kern/io/fcntl.h> | |
#include <psp2kern/sblauthmgr.h> | |
#include "log.h" | |
#include "draw.h" | |
#define LOG(s, ...) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import yaml | |
def usage(): | |
print("ps3-libs-gen by xerpi") | |
print("Usage:\n\t" + sys.argv[0] + " file.yaml") | |
def generate_lib_resident(name): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import construct | |
from collections import namedtuple | |
from elftools.elf.elffile import ELFFile | |
from elftools.elf.relocation import RelocationSection | |
from construct import Struct, Int8ub, Int16ub, Int32ub, PaddedString, CString, Array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys | |
import json | |
def main(): | |
if len(sys.argv) < 2: | |
print("Usage:\n\t", sys.argv[0], "db.json") | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "hdmi.h" | |
#include "libc.h" | |
#include "utils.h" | |
#include "adv7511.h" | |
#include "i2c.h" | |
#include "gpio.h" | |
#include "pervasive.h" | |
#include "syscon.h" | |
#include "log.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PERVASIVERESET_BASE_ADDR 0xE3101000 | |
#define PERVASIVEGATE_BASE_ADDR 0xE3102000 | |
static inline void pervasive_mask_or(unsigned int addr, unsigned int val) | |
{ | |
volatile unsigned long tmp; | |
asm volatile( | |
"ldr %0, [%1]\n\t" | |
"orr %0, %2\n\t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
vitafunctiondefs.py by xerpi | |
arm-vita-eabi-gcc -E $VITASDK/arm-vita-eabi/include/vitasdk.h -D"__attribute__(x)=" -D"__extension__(x)=" > preprocessor_user.h | |
arm-vita-eabi-gcc -E $VITASDK/arm-vita-eabi/include/vitasdkkern.h -D"__attribute__(x)=" -D"__extension__(x)=" > preprocessor_kern.h | |
''' | |
import sys | |
import os.path | |
import struct |