git-svn-id: https://spexeah.com:8443/svn/Asuro@369 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
+2
-2
@@ -120,10 +120,10 @@ begin
|
||||
for slot := 0 to 31 do begin
|
||||
result := loadDeviceConfig(bus, slot, 0);
|
||||
if result = true then begin
|
||||
if devices[device_count - 1].header_type and $40 = 40 then begin
|
||||
if devices[device_count - 1].header_type and $80 <> 0 then begin
|
||||
for func := 1 to 8 do begin
|
||||
loadDeviceConfig(bus, slot, func);
|
||||
psleep(1000);
|
||||
psleep(10);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+4
-1
@@ -34,7 +34,8 @@ uses
|
||||
strings,
|
||||
USB,
|
||||
testdriver,
|
||||
E1000;
|
||||
E1000,
|
||||
AHCI_OLD;
|
||||
|
||||
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall;
|
||||
|
||||
@@ -125,6 +126,8 @@ begin
|
||||
mouse.init();
|
||||
testdriver.init();
|
||||
E1000.init();
|
||||
//AHCI_OLD.init();
|
||||
//Nothing beyond here
|
||||
USB.init();
|
||||
pci.init();
|
||||
console.writestringln('DRIVERS: INIT END.');
|
||||
|
||||
@@ -129,13 +129,13 @@ begin
|
||||
end else begin
|
||||
PhysicalMemory[block].Allocated:= True;
|
||||
PhysicalMemory[block].MappedTo:= caller;
|
||||
console.writestring('PMM: 4MiB Block Allocated @ ');
|
||||
console.writeword(block);
|
||||
console.writestring(' [');
|
||||
console.writehex(block SHL 22);
|
||||
console.writestring(' - ');
|
||||
console.writehex(((block+1) SHL 22));
|
||||
console.writestringln(']');
|
||||
// console.writestring('PMM: 4MiB Block Allocated @ ');
|
||||
// console.writeword(block);
|
||||
// console.writestring(' [');
|
||||
// console.writehex(block SHL 22);
|
||||
// console.writestring(' - ');
|
||||
// console.writehex(((block+1) SHL 22));
|
||||
// console.writestringln(']');
|
||||
alloc_block:= true;
|
||||
end;
|
||||
end else begin
|
||||
|
||||
+14
-14
@@ -112,22 +112,22 @@ begin
|
||||
PD^[page_number].PageSize:= true;
|
||||
PD^[page_number].Writable:= true;
|
||||
|
||||
// console.writestringln('VMM: New Page Added:');
|
||||
console.writestringln('VMM: New Page Added:');
|
||||
|
||||
// console.writestring('VMM: - P:');
|
||||
// console.writehex(page_number);
|
||||
// console.writestring('-->B:');
|
||||
// console.writehexln(block);
|
||||
console.writestring('VMM: - P:');
|
||||
console.writehex(page_number);
|
||||
console.writestring('-->B:');
|
||||
console.writehexln(block);
|
||||
|
||||
// console.writestring('VMM: - P:[');
|
||||
// console.writehex(page_number SHL 22);
|
||||
// console.writestring(' - ');
|
||||
// console.writehex(((page_number+1) SHL 22));
|
||||
// console.writestring(']-->B:[');
|
||||
// console.writehex(block SHL 22);
|
||||
// console.writestring(' - ');
|
||||
// console.writehex(((block+1) SHL 22));
|
||||
// console.writestringln(']');
|
||||
console.writestring('VMM: - P:[');
|
||||
console.writehex(page_number SHL 22);
|
||||
console.writestring(' - ');
|
||||
console.writehex(((page_number+1) SHL 22));
|
||||
console.writestring(']-->B:[');
|
||||
console.writehex(block SHL 22);
|
||||
console.writestring(' - ');
|
||||
console.writehex(((block+1) SHL 22));
|
||||
console.writestringln(']');
|
||||
|
||||
map_page_ex:= true;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user