git-svn-id: https://spexeah.com:8443/svn/Asuro@380 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
a795aa03e2
commit
cba0da2704
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.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/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
BIN
lib/util.ppu
BIN
lib/util.ppu
Binary file not shown.
@ -60,6 +60,16 @@ begin
|
|||||||
console.writestringln('MB');
|
console.writestringln('MB');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure terminal_command_bsod(params : PParamList);
|
||||||
|
begin
|
||||||
|
if ParamCount(params) > 1 then begin
|
||||||
|
bsod(getparam(0, params), getparam(1, params));
|
||||||
|
end else begin
|
||||||
|
console.writestringln('Invalid number of params.');
|
||||||
|
console.writestringln('Usage: bsod <error> <info>');
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall; [public, alias: 'kmain'];
|
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall; [public, alias: 'kmain'];
|
||||||
var
|
var
|
||||||
c : uint8;
|
c : uint8;
|
||||||
@ -81,6 +91,7 @@ begin
|
|||||||
|
|
||||||
terminal.init();
|
terminal.init();
|
||||||
terminal.registerCommand('MEMINFO', @terminal_command_meminfo, 'Print Simple Memory Information.');
|
terminal.registerCommand('MEMINFO', @terminal_command_meminfo, 'Print Simple Memory Information.');
|
||||||
|
terminal.registerCommand('BSOD', @terminal_command_bsod, 'Force a Panic Screen.');
|
||||||
|
|
||||||
drivermanagement.init();
|
drivermanagement.init();
|
||||||
|
|
||||||
@ -152,7 +163,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;
|
||||||
|
@ -48,6 +48,8 @@ procedure run;
|
|||||||
procedure init;
|
procedure init;
|
||||||
procedure registerCommand(command : pchar; method : TCommandMethod; description : pchar);
|
procedure registerCommand(command : pchar; method : TCommandMethod; description : pchar);
|
||||||
function getParams(buf : TCommandBuffer) : PParamList;
|
function getParams(buf : TCommandBuffer) : PParamList;
|
||||||
|
function paramCount(params : PParamList) : uint32;
|
||||||
|
function getParam(index : uint32; params : PParamList) : pchar;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user