Lines Matching defs:code
216 * OpenRISC code into SRAM, put the address of that into the reset vector
218 * WFI, then execute that code and pull the line up again.
219 * The code expects the core mask to be patched into the first instruction.
226 uint32_t *code = arisc_core_off;
237 /* Patch up the code to feed in an input parameter. */
238 code[0] = (code[0] & ~0xffff) | BIT_32(core);
239 clean_dcache_range((uintptr_t)code, sizeof(arisc_core_off));
246 mmio_write_32(arisc_reset_vec, ((uintptr_t)code - arisc_reset_vec) / 4);
255 * Once it has finished, the code is supposed to clear the reset line,