git-svn-id: https://spexeah.com:8443/svn/Asuro@362 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
f6c75b5447
commit
7333ce5c8f
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/AHCI.ppu
BIN
lib/AHCI.ppu
Binary file not shown.
BIN
lib/E1000.ppu
BIN
lib/E1000.ppu
Binary file not shown.
BIN
lib/PCI.ppu
BIN
lib/PCI.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.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.
Binary file not shown.
BIN
lib/mouse.ppu
BIN
lib/mouse.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/strings.ppu
BIN
lib/strings.ppu
Binary file not shown.
BIN
lib/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
Binary file not shown.
@ -71,6 +71,7 @@ var
|
|||||||
|
|
||||||
temp : uint32;
|
temp : uint32;
|
||||||
atmp : puint32;
|
atmp : puint32;
|
||||||
|
test : puint8;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
multibootinfo:= mbinfo;
|
multibootinfo:= mbinfo;
|
||||||
@ -146,6 +147,7 @@ begin
|
|||||||
console.writestringln('');
|
console.writestringln('');
|
||||||
console.writestringln('Press any key to boot in to Asuro Terminal...');
|
console.writestringln('Press any key to boot in to Asuro Terminal...');
|
||||||
keyboard.hook(@temphook);
|
keyboard.hook(@temphook);
|
||||||
|
|
||||||
util.halt_and_dont_catch_fire;
|
util.halt_and_dont_catch_fire;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
util,
|
util,
|
||||||
vmemorymanager,
|
vmemorymanager,
|
||||||
|
pmemorymanager,
|
||||||
console;
|
console;
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -45,6 +46,7 @@ var
|
|||||||
|
|
||||||
procedure init;
|
procedure init;
|
||||||
function kalloc(size : uint32) : void;
|
function kalloc(size : uint32) : void;
|
||||||
|
function kpalloc(address : uint32) : void;
|
||||||
procedure kfree(area : void);
|
procedure kfree(area : void);
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -97,6 +99,17 @@ begin
|
|||||||
console.writestringln('LMM: INIT END.');
|
console.writestringln('LMM: INIT END.');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function kpalloc(address : uint32) : void;
|
||||||
|
var
|
||||||
|
block : uint16;
|
||||||
|
|
||||||
|
begin
|
||||||
|
block:= address SHR 22;
|
||||||
|
force_alloc_block(block, 0);
|
||||||
|
map_page(block, block);
|
||||||
|
kpalloc:= void(block SHL 22);
|
||||||
|
end;
|
||||||
|
|
||||||
function kalloc(size : uint32) : void;
|
function kalloc(size : uint32) : void;
|
||||||
var
|
var
|
||||||
Heap_Entries : uint32;
|
Heap_Entries : uint32;
|
||||||
|
@ -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
|
||||||
|
@ -112,10 +112,10 @@ 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);
|
||||||
|
|
||||||
@ -128,6 +128,7 @@ begin
|
|||||||
// 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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user