Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| #pragma once | |
| #include "hwinit/types.h" | |
| //Boot status | |
| #define BOOT_STATE_ADDR (vu32 *)0x40002EF8 | |
| #define SECMON_STATE_ADDR (vu32 *)0x40002EFC | |
| #define BOOT_PKG2_LOADED 2 | |
| #define BOOT_DONE 3 | |
| #define BOOT_PKG2_LOADED_4X 3 | |
| #define BOOT_DONE_4X 4 | |
| //Instructions | |
| #define NOP 0xD503201F | |
| #define ADRP(r, o) 0x90000000 | ((((o) >> 12) & 0x3) << 29) | ((((o) >> 12) & 0x1FFFFC) << 3) | ((r) & 0x1F) | |
| void firmware(); |