header foo
This commit is contained in:
@@ -34,7 +34,7 @@ OutputStream* copyout = ©stream;
|
|||||||
#include "./interrupt/guard.h"
|
#include "./interrupt/guard.h"
|
||||||
#include "./boot/multiboot/data.h"
|
#include "./boot/multiboot/data.h"
|
||||||
#include "./sync/semaphore.h"
|
#include "./sync/semaphore.h"
|
||||||
|
#include "./memory/pageframealloc.h"
|
||||||
//Semaphore koutsem(1);
|
//Semaphore koutsem(1);
|
||||||
//TextStream kout(0, 80, 1, 17, true);
|
//TextStream kout(0, 80, 1, 17, true);
|
||||||
|
|
||||||
@@ -52,10 +52,10 @@ alignas(4096) four_lvl_paging_t paging_tree;
|
|||||||
// Main function
|
// Main function
|
||||||
extern "C" int main() {
|
extern "C" int main() {
|
||||||
PageFrameAllocator::stats();
|
PageFrameAllocator::stats();
|
||||||
|
|
||||||
Multiboot::Module* initrd = Multiboot::getModule(0);
|
Multiboot::Module* initrd = Multiboot::getModule(0);
|
||||||
DBG << "initrd address: " << hex << initrd->getStartAddress() << endl << "initrd size: " << initrd->getSize() << endl;
|
DBG << "initrd address: " << hex << initrd->getStartAddress() << endl << "initrd size: " << initrd->getSize() << endl;
|
||||||
memcpy((void *)0x4000000, initrd->getStartAddress(), initrd->getSize());
|
memcpy((void *)0x4000000, initrd->getStartAddress(), initrd->getSize());
|
||||||
|
mark_pageframes(0x400000, 0x4000000 + initrd->getSize(), false);
|
||||||
|
|
||||||
memset(&paging_tree, 0, sizeof(four_lvl_paging_t));
|
memset(&paging_tree, 0, sizeof(four_lvl_paging_t));
|
||||||
create_basic_page_table(&paging_tree);
|
create_basic_page_table(&paging_tree);
|
||||||
|
|||||||
@@ -16,4 +16,8 @@ namespace PageFrameAllocator {
|
|||||||
void free (PageFrame *frame);
|
void free (PageFrame *frame);
|
||||||
void free (uintptr_t addr);
|
void free (uintptr_t addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void mark_pageframes(uintptr_t start, uintptr_t end, bool available);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
1
libsys/build/libc.d
Normal file
1
libsys/build/libc.d
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build/libc.o: libc.cc libc.h types.h
|
||||||
BIN
libsys/build/libc.o
Normal file
BIN
libsys/build/libc.o
Normal file
Binary file not shown.
BIN
libsys/build/libsys.a
Normal file
BIN
libsys/build/libsys.a
Normal file
Binary file not shown.
2
libsys/build/outputstream.d
Normal file
2
libsys/build/outputstream.d
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build/outputstream.o: outputstream.cc outputstream.h stringbuffer.h \
|
||||||
|
types.h
|
||||||
BIN
libsys/build/outputstream.o
Normal file
BIN
libsys/build/outputstream.o
Normal file
Binary file not shown.
1
libsys/build/string.d
Normal file
1
libsys/build/string.d
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build/string.o: string.cc string.h types.h
|
||||||
BIN
libsys/build/string.o
Normal file
BIN
libsys/build/string.o
Normal file
Binary file not shown.
1
libsys/build/stringbuffer.d
Normal file
1
libsys/build/stringbuffer.d
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build/stringbuffer.o: stringbuffer.cc stringbuffer.h types.h
|
||||||
BIN
libsys/build/stringbuffer.o
Normal file
BIN
libsys/build/stringbuffer.o
Normal file
Binary file not shown.
2
libsys/build/stub.asm.d
Normal file
2
libsys/build/stub.asm.d
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build/stub.asm.o : stub.asm
|
||||||
|
|
||||||
BIN
libsys/build/stub.asm.o
Normal file
BIN
libsys/build/stub.asm.o
Normal file
Binary file not shown.
BIN
user/app1/build/app
Executable file
BIN
user/app1/build/app
Executable file
Binary file not shown.
BIN
user/app1/build/app.img
Executable file
BIN
user/app1/build/app.img
Executable file
Binary file not shown.
2
user/app1/build/appl.d
Normal file
2
user/app1/build/appl.d
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build/appl.o: appl.cc ../../libsys/../libsys/stub.h \
|
||||||
|
../../libsys/../libsys/types.h
|
||||||
BIN
user/app1/build/appl.o
Normal file
BIN
user/app1/build/appl.o
Normal file
Binary file not shown.
BIN
user/app2/build/app
Executable file
BIN
user/app2/build/app
Executable file
Binary file not shown.
BIN
user/app2/build/app.img
Executable file
BIN
user/app2/build/app.img
Executable file
Binary file not shown.
2
user/app2/build/kappl.d
Normal file
2
user/app2/build/kappl.d
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build/kappl.o: kappl.cc ../../libsys/../libsys/stub.h \
|
||||||
|
../../libsys/../libsys/types.h ../../libsys/../libsys/string.h
|
||||||
BIN
user/app2/build/kappl.o
Normal file
BIN
user/app2/build/kappl.o
Normal file
Binary file not shown.
Reference in New Issue
Block a user