git-svn-id: https://spexeah.com:8443/svn/Asuro@369 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
aaron
2018-04-07 13:01:28 +00:00
parent bd04e04b34
commit 20935bc0f5
6 changed files with 263 additions and 65 deletions
+2 -2
View File
@@ -120,10 +120,10 @@ begin
for slot := 0 to 31 do begin for slot := 0 to 31 do begin
result := loadDeviceConfig(bus, slot, 0); result := loadDeviceConfig(bus, slot, 0);
if result = true then begin 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 for func := 1 to 8 do begin
loadDeviceConfig(bus, slot, func); loadDeviceConfig(bus, slot, func);
psleep(1000); psleep(10);
end; end;
end; 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
View File
@@ -34,7 +34,8 @@ uses
strings, strings,
USB, USB,
testdriver, testdriver,
E1000; E1000,
AHCI_OLD;
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall; procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall;
@@ -125,6 +126,8 @@ begin
mouse.init(); mouse.init();
testdriver.init(); testdriver.init();
E1000.init(); E1000.init();
//AHCI_OLD.init();
//Nothing beyond here
USB.init(); USB.init();
pci.init(); pci.init();
console.writestringln('DRIVERS: INIT END.'); console.writestringln('DRIVERS: INIT END.');
+7 -7
View File
@@ -129,13 +129,13 @@ begin
end else begin end else begin
PhysicalMemory[block].Allocated:= True; PhysicalMemory[block].Allocated:= True;
PhysicalMemory[block].MappedTo:= caller; PhysicalMemory[block].MappedTo:= caller;
console.writestring('PMM: 4MiB Block Allocated @ '); // console.writestring('PMM: 4MiB Block Allocated @ ');
console.writeword(block); // console.writeword(block);
console.writestring(' ['); // console.writestring(' [');
console.writehex(block SHL 22); // console.writehex(block SHL 22);
console.writestring(' - '); // console.writestring(' - ');
console.writehex(((block+1) SHL 22)); // console.writehex(((block+1) SHL 22));
console.writestringln(']'); // console.writestringln(']');
alloc_block:= true; alloc_block:= true;
end; end;
end else begin end else begin
+14 -14
View File
@@ -112,22 +112,22 @@ begin
PD^[page_number].PageSize:= true; PD^[page_number].PageSize:= true;
PD^[page_number].Writable:= true; PD^[page_number].Writable:= true;
// console.writestringln('VMM: New Page Added:'); console.writestringln('VMM: New Page Added:');
// console.writestring('VMM: - P:'); console.writestring('VMM: - P:');
// console.writehex(page_number); console.writehex(page_number);
// console.writestring('-->B:'); console.writestring('-->B:');
// console.writehexln(block); console.writehexln(block);
// console.writestring('VMM: - P:['); console.writestring('VMM: - P:[');
// console.writehex(page_number SHL 22); console.writehex(page_number SHL 22);
// console.writestring(' - '); console.writestring(' - ');
// console.writehex(((page_number+1) SHL 22)); console.writehex(((page_number+1) SHL 22));
// console.writestring(']-->B:['); console.writestring(']-->B:[');
// console.writehex(block SHL 22); console.writehex(block SHL 22);
// console.writestring(' - '); console.writestring(' - ');
// console.writehex(((block+1) SHL 22)); console.writehex(((block+1) SHL 22));
// console.writestringln(']'); console.writestringln(']');
map_page_ex:= true; map_page_ex:= true;
end; end;