ISO Testing

git-svn-id: https://spexeah.com:8443/svn/Asuro@281 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-10-27 08:23:53 +00:00
parent db618bd802
commit 44b2ad018b
11 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,9 @@ interface
uses
Console,
PCI,
drivertypes;
drivertypes,
pmemorymanager,
vmemorymanager;
procedure init;
@ -16,6 +18,7 @@ var
devices : TDeviceArray;
count : uint32;
i : uint32;
block : uint32;
begin
console.writestringln('USB: INIT BEGIN.');
@ -51,6 +54,9 @@ begin
console.writehex(devices[i].vendor_id);
console.writestring(' ');
console.writehexln(devices[i].prog_if);
block:= devices[i].address0 SHR 22;
force_alloc_block(block, 0);
map_page(block, block);
end;
end;

View File

@ -27,6 +27,7 @@ type
procedure init;
function alloc_block(block : uint16; caller : uint32) : boolean;
procedure force_alloc_block(block : uint16; caller : uint32);
function new_block(caller : uint32) : uint16;
procedure free_block(block : uint16; caller : uint32);