fa57c53091d0a13b4f9e11ab360295fc2efb50d1
[rpi-open-firmware.git] / panic.c
1 /*=============================================================================
2 Copyright (C) 2016 Kristina Brooks
3 All rights reserved.
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 FILE DESCRIPTION
16 Panic routine.
17
18 =============================================================================*/
19
20 #include <common.h>
21 #include <cpu.h>
22
23 #undef panic
24
25 void panic(const char* fmt, ...) {
26 printf("panic(): ");
27
28 va_list arp;
29
30 va_start(arp, fmt);
31 vprintf(fmt, arp);
32 va_end(arp);
33
34 putchar('\n');
35
36 hang_cpu();
37 }
This page took 0.063398 seconds and 3 git commands to generate.