Files
Jibo-Platform-Tools-OLD/depricated payloads/source/jibo_leak_ram.c

16 lines
352 B
C
Raw Normal View History

#define PMC_BASE 0x7000e400
#define PMC_SCRATCH0 (PMC_BASE + 0x50)
#define PMC_CNTRL (PMC_BASE + 0x0)
#define BOOTROM_START 0xFFF00000
void _start() {
unsigned int rom_data = *(volatile unsigned int *)(BOOTROM_START);
*(volatile unsigned int *)(PMC_SCRATCH0) = rom_data;
*(volatile unsigned int *)(PMC_CNTRL) |= (1 << 4);
while (1)
;
}