git-svn-id: https://spexeah.com:8443/svn/Asuro@462 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
150454da0a
commit
bce58215eb
@ -17,8 +17,6 @@ uses
|
|||||||
console,
|
console,
|
||||||
terminal,
|
terminal,
|
||||||
drivermanagement,
|
drivermanagement,
|
||||||
vmemorymanager,
|
|
||||||
lmemorymanager,
|
|
||||||
strings;
|
strings;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -34,8 +32,8 @@ type
|
|||||||
sName : pchar;
|
sName : pchar;
|
||||||
writeCallback : PPIOHook;
|
writeCallback : PPIOHook;
|
||||||
readCallback : PPIOHook;
|
readCallback : PPIOHook;
|
||||||
createCallback : PPCreateHook;
|
createCallback : uint32;
|
||||||
detectCallback : PPDetectHook;
|
detectCallback : uint32;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TStorage_Volume = record
|
TStorage_Volume = record
|
||||||
@ -44,7 +42,7 @@ type
|
|||||||
sectorSize : uint32;
|
sectorSize : uint32;
|
||||||
filesystem : TFilesystem;
|
filesystem : TFilesystem;
|
||||||
end;
|
end;
|
||||||
APStorage_Volume = array[0..255] of PStorage_volume;
|
APStorage_Volume = array[0..10] of PStorage_volume;
|
||||||
|
|
||||||
TStorage_Device = record
|
TStorage_Device = record
|
||||||
idx : uint8;
|
idx : uint8;
|
||||||
@ -59,8 +57,8 @@ type
|
|||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
storageDevices : array[0..255] of TStorage_Device; //index in this array is global drive id
|
storageDevices : array[0..25] of PStorage_Device; //index in this array is global drive id
|
||||||
fileSystems : array[0..31] of TFilesystem;
|
fileSystems : array[0..31] of PFilesystem;
|
||||||
|
|
||||||
procedure init();
|
procedure init();
|
||||||
|
|
||||||
|
@ -93,7 +93,6 @@ begin
|
|||||||
console.init();
|
console.init();
|
||||||
console.writestringln('A');
|
console.writestringln('A');
|
||||||
|
|
||||||
|
|
||||||
terminal.init();
|
terminal.init();
|
||||||
|
|
||||||
console.writestringln('B');
|
console.writestringln('B');
|
||||||
@ -104,6 +103,9 @@ begin
|
|||||||
|
|
||||||
console.writestringln('Booting Asuro...');
|
console.writestringln('Booting Asuro...');
|
||||||
|
|
||||||
|
while true do begin
|
||||||
|
end;
|
||||||
|
|
||||||
if (multibootmagic <> MULTIBOOT_BOOTLOADER_MAGIC) then begin
|
if (multibootmagic <> MULTIBOOT_BOOTLOADER_MAGIC) then begin
|
||||||
console.setdefaultattribute(console.combinecolors(Red, Black));
|
console.setdefaultattribute(console.combinecolors(Red, Black));
|
||||||
console.outputln('KERNEL', 'Multiboot Compliant Boot-Loader Needed!');
|
console.outputln('KERNEL', 'Multiboot Compliant Boot-Loader Needed!');
|
||||||
@ -135,7 +137,7 @@ begin
|
|||||||
bios_data_area.init();
|
bios_data_area.init();
|
||||||
|
|
||||||
drivermanagement.init();
|
drivermanagement.init();
|
||||||
//storagemanagement.init();
|
storagemanagement.init();
|
||||||
|
|
||||||
//asm INT 13 end;
|
//asm INT 13 end;
|
||||||
STI;
|
STI;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user