projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
backported fixes from 256boss
[bootcensus]
/
src
/
panic.c
diff --git
a/src/panic.c
b/src/panic.c
index
3daff29
..
1e79be6
100644
(file)
--- a/
src/panic.c
+++ b/
src/panic.c
@@
-18,6
+18,7
@@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+#include "video.h"
#include "asmops.h"
struct all_registers {
@@
-37,6
+38,7
@@
void panic(const char *fmt, ...)
struct all_registers regs;
uint32_t eip;
+ set_vga_mode(3);
disable_intr();
memset(®s, 0, sizeof regs);