calling free

This commit is contained in:
user
2026-02-18 11:03:52 +01:00
parent 4d79a29472
commit d7b719ed51
12 changed files with 10 additions and 0 deletions

View File

@@ -128,6 +128,8 @@ namespace Syscall {
}
void exit(Vault &vault) {
unmap(vault, (void*) 0x4000, 512 );
vault.scheduler.exit();
}
@@ -190,6 +192,7 @@ namespace Syscall {
for (uint32_t p =0; p<512 ; p++) {
if (subbytable->entries[p].present==1 && subbytable->entries[p].address==i) {
invlpg(i);
PageFrameAllocator::free(subbytable->entries[p].address);
subbytable->entries[i].present =0;
}
}

1
libsys/build/libc.d Normal file
View File

@@ -0,0 +1 @@
build/libc.o: libc.cc libc.h types.h

BIN
libsys/build/libc.o Normal file

Binary file not shown.

BIN
libsys/build/libsys.a Normal file

Binary file not shown.

View File

@@ -0,0 +1,2 @@
build/outputstream.o: outputstream.cc outputstream.h stringbuffer.h \
types.h

BIN
libsys/build/outputstream.o Normal file

Binary file not shown.

1
libsys/build/string.d Normal file
View File

@@ -0,0 +1 @@
build/string.o: string.cc string.h types.h

BIN
libsys/build/string.o Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
build/stringbuffer.o: stringbuffer.cc stringbuffer.h types.h

BIN
libsys/build/stringbuffer.o Normal file

Binary file not shown.

2
libsys/build/stub.asm.d Normal file
View File

@@ -0,0 +1,2 @@
build/stub.asm.o : stub.asm

BIN
libsys/build/stub.asm.o Normal file

Binary file not shown.