Go to the documentation of this file.
16 #error GCC 4 unsupported SELFMOD. Please disable SELFMOD from menuconfig.
19 #define OPCODE_IMM 0xB0000000
20 #define OPCODE_LWI 0xE8000000
21 #define OPCODE_LWI_MASK 0xEC000000
22 #define OPCODE_RTSD 0xB60F0008
23 #define OPCODE_ADDIK 0x30000000
24 #define OPCODE_ADDIK_MASK 0xFC000000
26 #define IMM_BASE (OPCODE_IMM | (BARRIER_BASE_ADDR >> 16))
27 #define LWI_BASE (OPCODE_LWI | (BARRIER_BASE_ADDR & 0x0000ff00))
28 #define LWI_BASE_MASK (OPCODE_LWI_MASK | (BARRIER_BASE_ADDR & 0x0000ff00))
29 #define ADDIK_BASE (OPCODE_ADDIK | (BARRIER_BASE_ADDR & 0x0000ff00))
30 #define ADDIK_BASE_MASK (OPCODE_ADDIK_MASK | (BARRIER_BASE_ADDR & 0x0000ff00))
32 #define MODIFY_INSTR { \
33 pr_debug("%s: curr instr, (%d):0x%x, next(%d):0x%x\n", \
34 __func__, i, addr[i], i + 1, addr[i + 1]); \
35 addr[i] = OPCODE_IMM + (base >> 16); \
37 addr[i + 1] = (addr[i + 1] & 0xffff00ff) + (base & 0xffff); \
38 __invalidate_icache(addr[i]); \
39 __invalidate_icache(addr[i + 1]); \
40 pr_debug("%s: hack instr, (%d):0x%x, next(%d):0x%x\n", \
41 __func__, i, addr[i], i + 1, addr[i + 1]); }
55 for (j = 0; arr_fce[
j] != 0; j++) {
57 addr = (
unsigned int *) arr_fce[j];
59 __func__, j, (
unsigned int) addr);
61 pr_debug(
"%s: instruction code at %d: 0x%x\n",
62 __func__, i, addr[i]);
75 pr_debug(
"%s: end of array %d\n", __func__, i);