More flexible patch. Version specific stuff lifted into macros

This commit is contained in:
roblabla 2019-02-07 19:11:06 +00:00
parent c630a5f3b0
commit b80dfc682f

View file

@ -63,6 +63,8 @@ extern gfx_con_t gfx_con;
#define OUTPUT_DEBUG_OFF_100 0x2AD64
#define PRINTK_OFF_100 0x3BB4
static u32 PRC_ID_SND_100[] =
{
0xA9BF2FEA, 0x2A0E03EB, 0xD37EF56B, 0xF86B6B8B, 0x92FFFFE9, 0x8A090168, 0xD2FFFFE9, 0x8A09016B,
@ -77,8 +79,9 @@ static u32 PRC_ID_RCV_100[] =
#define FREE_CODE_OFF_3RD_100 (FREE_CODE_OFF_2ND_100 + sizeof(PRC_ID_RCV_100) + 4)
static u32 DEBUG_OUTPUT_TRAMPOLINE_100[] =
{
0xE20300AA, 0xE0FFFFD2, 0xE0FFDFF2, 0x80F8B7F2, 0x802F8BF2, 0xFD7BBFA9, 0x86F0FE97, 0x000080D2,
0xFD7BC1A8, 0xC0035FD6
0x252E2A73, 0x00000000, // "%.*s"
0xE20300AA, 0xA0FFFF58, 0xFD7BBFA9, _BL(FREE_CODE_OFF_3RD_100 + 5 * 4, PRINTK_OFF_100), 0x000080D2,
0xFD7BC1A8, 0xC0035FD6
};
static u32 PRC_ID_SND_200[] =