Added cool stuff.
git-svn-id: https://spexeah.com:8443/svn/Asuro@376 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
2ffae7703c
commit
1c541dd753
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/E1000.ppu
BIN
lib/E1000.ppu
Binary file not shown.
BIN
lib/PCI.ppu
BIN
lib/PCI.ppu
Binary file not shown.
BIN
lib/USB.ppu
BIN
lib/USB.ppu
Binary file not shown.
BIN
lib/console.ppu
BIN
lib/console.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/idt.ppu
BIN
lib/idt.ppu
Binary file not shown.
BIN
lib/irq.ppu
BIN
lib/irq.ppu
Binary file not shown.
BIN
lib/isr0.ppu
BIN
lib/isr0.ppu
Binary file not shown.
BIN
lib/isr1.ppu
BIN
lib/isr1.ppu
Binary file not shown.
BIN
lib/isr10.ppu
BIN
lib/isr10.ppu
Binary file not shown.
BIN
lib/isr11.ppu
BIN
lib/isr11.ppu
Binary file not shown.
BIN
lib/isr12.ppu
BIN
lib/isr12.ppu
Binary file not shown.
BIN
lib/isr13.ppu
BIN
lib/isr13.ppu
Binary file not shown.
BIN
lib/isr14.ppu
BIN
lib/isr14.ppu
Binary file not shown.
BIN
lib/isr15.ppu
BIN
lib/isr15.ppu
Binary file not shown.
BIN
lib/isr16.ppu
BIN
lib/isr16.ppu
Binary file not shown.
BIN
lib/isr17.ppu
BIN
lib/isr17.ppu
Binary file not shown.
BIN
lib/isr18.ppu
BIN
lib/isr18.ppu
Binary file not shown.
BIN
lib/isr2.ppu
BIN
lib/isr2.ppu
Binary file not shown.
BIN
lib/isr3.ppu
BIN
lib/isr3.ppu
Binary file not shown.
BIN
lib/isr32.ppu
BIN
lib/isr32.ppu
Binary file not shown.
BIN
lib/isr33.ppu
BIN
lib/isr33.ppu
Binary file not shown.
BIN
lib/isr4.ppu
BIN
lib/isr4.ppu
Binary file not shown.
BIN
lib/isr40.ppu
BIN
lib/isr40.ppu
Binary file not shown.
BIN
lib/isr44.ppu
BIN
lib/isr44.ppu
Binary file not shown.
BIN
lib/isr5.ppu
BIN
lib/isr5.ppu
Binary file not shown.
BIN
lib/isr6.ppu
BIN
lib/isr6.ppu
Binary file not shown.
BIN
lib/isr7.ppu
BIN
lib/isr7.ppu
Binary file not shown.
BIN
lib/isr8.ppu
BIN
lib/isr8.ppu
Binary file not shown.
BIN
lib/isr9.ppu
BIN
lib/isr9.ppu
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.ppu
Binary file not shown.
BIN
lib/keyboard.ppu
BIN
lib/keyboard.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
Binary file not shown.
BIN
lib/mouse.ppu
BIN
lib/mouse.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/strings.ppu
BIN
lib/strings.ppu
Binary file not shown.
BIN
lib/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
BIN
lib/util.ppu
BIN
lib/util.ppu
Binary file not shown.
Binary file not shown.
@ -129,7 +129,7 @@ begin
|
|||||||
testdriver.init();
|
testdriver.init();
|
||||||
E1000.init();
|
E1000.init();
|
||||||
//AHCI_OLD.init();
|
//AHCI_OLD.init();
|
||||||
IDE.init();
|
//IDE.init();
|
||||||
//Nothing beyond here
|
//Nothing beyond here
|
||||||
USB.init();
|
USB.init();
|
||||||
pci.init();
|
pci.init();
|
||||||
@ -152,6 +152,7 @@ begin
|
|||||||
console.setdefaultattribute(console.combinecolors(White, Black));
|
console.setdefaultattribute(console.combinecolors(White, Black));
|
||||||
console.writestringln('');
|
console.writestringln('');
|
||||||
console.writestringln('Press any key to boot in to Asuro Terminal...');
|
console.writestringln('Press any key to boot in to Asuro Terminal...');
|
||||||
|
BSOD('TOPKEK', 'Because why not?');
|
||||||
keyboard.hook(@temphook);
|
keyboard.hook(@temphook);
|
||||||
|
|
||||||
util.halt_and_dont_catch_fire;
|
util.halt_and_dont_catch_fire;
|
||||||
|
38
src/util.pas
38
src/util.pas
@ -38,6 +38,7 @@ procedure memcpy(source : uint32; dest : uint32; size : uint32);
|
|||||||
|
|
||||||
procedure halt_and_catch_fire();
|
procedure halt_and_catch_fire();
|
||||||
procedure halt_and_dont_catch_fire();
|
procedure halt_and_dont_catch_fire();
|
||||||
|
procedure BSOD(fault : pchar; info : pchar);
|
||||||
procedure psleep(t : uint16);
|
procedure psleep(t : uint16);
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -227,4 +228,41 @@ begin
|
|||||||
getByte:= (i AND mask) SHR (8*index);
|
getByte:= (i AND mask) SHR (8*index);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure BSOD(fault : pchar; info : pchar);
|
||||||
|
begin
|
||||||
|
console.setdefaultattribute(console.combinecolors(white, blue));
|
||||||
|
console.clear;
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestring(' ');
|
||||||
|
console.setdefaultattribute(console.combinecolors(black, white));
|
||||||
|
console.writestring(' SOMETHING HAS GONE WRONG AND ASURO HAD TO STOP! ');
|
||||||
|
console.setdefaultattribute(console.combinecolors(lwhite, blue));
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' Asuro encountered an error and could not recover.');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' The fault could have been caused by one or more of the following: ');
|
||||||
|
console.writestringln(' - A misconfigured device.');
|
||||||
|
console.writestringln(' - A malfunctioning driver.');
|
||||||
|
console.writestringln(' - A malfunctioning device.');
|
||||||
|
console.writestringln(' - A devlopers inability to handle faults correctly.');
|
||||||
|
console.writestringln(' - A Monkey inside the PC Case.');
|
||||||
|
console.writestringln(' - Spilt Coffeee.');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' Details of the fault (for those boring enough to read) are as follows: ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestring(' Fault ID: ');
|
||||||
|
console.writestringln(fault);
|
||||||
|
console.writestring(' Fault Info: ');
|
||||||
|
console.writestringln(info);
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
console.writestringln(' ');
|
||||||
|
halt_and_catch_fire();
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user