X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpanic.c;h=1e79be638cd446f60af830f48e2c99fe77002a0a;hb=22dd4db1a4ff756f76bdd87062c2252fe3091228;hp=af79a9e24cb23ef5e326f4d408eb118485937019;hpb=a2f94f569a4c99204de02814a20098a71527e913;p=bootcensus diff --git a/src/panic.c b/src/panic.c index af79a9e..1e79be6 100644 --- a/src/panic.c +++ b/src/panic.c @@ -1,6 +1,24 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #include #include #include +#include "video.h" #include "asmops.h" struct all_registers { @@ -20,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);