Update copyright string in initialization screen
[rpi-open-firmware.git] / arm_chainloader / firmware_rendezvous.c
1 #include <stdint.h>
2 #include <hardware.h>
3 #include <chainloader.h>
4
5 extern void main();
6 extern void uart_putc(int c);
7
8 void _firmware_rendezvous() {
9 /* Channels to talk to the firmware */
10 volatile uint32_t* arm_membase = (volatile uint32_t*)0x0;
11 volatile uint32_t* comm1 = arm_membase + 8;
12 volatile uint32_t* comm2 = arm_membase + 9;
13 volatile uint32_t* comm3 = arm_membase + 10;
14 volatile uint32_t* comm4 = arm_membase + 11;
15
16 *comm1 = 0xCAFEEEEE;
17
18 /*
19 * check if we have peripheral access
20 * if so, we don't need the VPU anymore
21 */
22 if (ARM_ID != ARM_IDVAL) {
23 *comm1 = 0xDEADCAFE;
24 return;
25 }
26
27 *comm4 = VPU_KILL_COMMAND;
28
29 /* stall for a bit to let the VPU commit suicide */
30 for (int i = 0; i < 0x10000; i++)
31 *comm2 = i;
32
33 main();
34 }
This page took 0.088011 seconds and 4 git commands to generate.