diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index a912e07566..0dec816d77 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -549,10 +549,15 @@ void cop_main(void) | |||
549 | so it should not be assumed that the coprocessor be usable even on | 549 | so it should not be assumed that the coprocessor be usable even on |
550 | platforms which support it. | 550 | platforms which support it. |
551 | 551 | ||
552 | At present all we do is send the COP to sleep if anything wakes it. */ | 552 | At present the COP sleeps unless it receives a message from the CPU telling |
553 | while(1) { | 553 | it that we are loading a new kernel, so must reboot */ |
554 | |||
555 | extern volatile unsigned char cpu_message; | ||
556 | |||
557 | while(cpu_message != COP_REBOOT) { | ||
554 | COP_CTL = PROC_SLEEP; | 558 | COP_CTL = PROC_SLEEP; |
555 | } | 559 | } |
560 | rolo_restart_cop(); | ||
556 | } | 561 | } |
557 | #endif | 562 | #endif |
558 | 563 | ||