git-svn-id: https://spexeah.com:8443/svn/Asuro@608 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
360c3eba3e
commit
54e6b4ca31
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/asuro.ppu
BIN
lib/asuro.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.
BIN
lib/tracer.ppu
BIN
lib/tracer.ppu
Binary file not shown.
BIN
lib/util.ppu
BIN
lib/util.ppu
Binary file not shown.
@ -383,7 +383,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
console.writestringln('Unknown.')
|
console.writestringln('Unknown.');
|
||||||
end;
|
end;
|
||||||
console.redrawWindows;
|
console.redrawWindows;
|
||||||
halt_and_catch_fire();
|
halt_and_catch_fire();
|
||||||
|
@ -13,16 +13,14 @@ function get_trace_N(idx : uint32) : pchar;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
console, util, lists, strings, serial;
|
console, lmemorymanager, util, strings, serial;
|
||||||
|
|
||||||
const
|
const
|
||||||
MAX_TRACE = 40;
|
MAX_TRACE = 40;
|
||||||
SERIALID = '[TRACER] ';
|
|
||||||
|
|
||||||
var
|
var
|
||||||
t_ready : Boolean;
|
t_ready : Boolean;
|
||||||
Locked : Boolean;
|
Locked : Boolean;
|
||||||
TraceStack : PLinkedListBase;
|
|
||||||
Traces : Array[0..MAX_TRACE-1] of PChar;
|
Traces : Array[0..MAX_TRACE-1] of PChar;
|
||||||
|
|
||||||
procedure freeze;
|
procedure freeze;
|
||||||
@ -39,6 +37,7 @@ begin
|
|||||||
if t_ready then begin
|
if t_ready then begin
|
||||||
if not Locked then begin
|
if not Locked then begin
|
||||||
Locked:= true;
|
Locked:= true;
|
||||||
|
if Traces[MAX_TRACE-1] <> nil then kfree(void(Traces[MAX_TRACE-1]));
|
||||||
for i:=MAX_TRACE-1 downto 1 do begin
|
for i:=MAX_TRACE-1 downto 1 do begin
|
||||||
Traces[i]:= Traces[i-1];
|
Traces[i]:= Traces[i-1];
|
||||||
end;
|
end;
|
||||||
@ -60,8 +59,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure init;
|
procedure init;
|
||||||
|
var
|
||||||
|
i : uint32;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if TRACER_ENABLE then begin
|
if TRACER_ENABLE then begin
|
||||||
|
for i:=0 to MAX_TRACE-1 do begin
|
||||||
|
traces[i]:= nil;
|
||||||
|
end;
|
||||||
t_ready:= true;
|
t_ready:= true;
|
||||||
push_trace('kmain');
|
push_trace('kmain');
|
||||||
end;
|
end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user