Skip to content

Commit

Permalink
Fix Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtyson123 committed Oct 13, 2024
1 parent 15c9e47 commit cf5e160
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion kernel/include/memory/memorymanagement.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ namespace MaxOS{

public:
static MemoryManager* s_active_memory_manager;
static const uint64_t s_higher_half_offset { 0xFFFFFFFF80000000 };

static const uint64_t s_higher_half_kernel_offset { 0xFFFFFFFF80000000 };
static const uint64_t s_higher_half_mem_offset { 0xFFFF800000000000 };
Expand Down
7 changes: 1 addition & 6 deletions kernel/src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ extern volatile uint64_t p4_table[512];
extern "C" void kernelMain(unsigned long addr, unsigned long magic)
{

// Make the multiboot header
Multiboot multiboot(addr);

// Initialise the serial console
SerialConsole serialConsole;

Expand All @@ -132,10 +129,8 @@ extern "C" void kernelMain(unsigned long addr, unsigned long magic)
_kprintf("-= Virtual Memory Manager set up =-\n");


// Initialise the memory manager
MemoryManager memoryManager(&vmm);
void* test = memoryManager.malloc(100);
memoryManager.free(test);

_kprintf("-= Memory Manager set up =-\n");

// Now entered the gui space
Expand Down
2 changes: 0 additions & 2 deletions kernel/src/memory/memorymanagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ int MemoryManager::memory_used() {

return result;
}
uint64_t MemoryManager::map_to_higher_half(uint64_t physical_address) {


/**
* @brief Aligns the size to the chunk alignment
Expand Down
2 changes: 1 addition & 1 deletion toolchain/make_cross_compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source ./MaxOS.sh
if [ "$1" != "--no-deps" ]; then
msg "Installing extra dependencies"
sudo apt update
sudo apt install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libisl-dev cmake nasm
sudo apt install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libisl-dev cmake nasm telnet
fi

# Make A Directory For The Cross Compiler
Expand Down

0 comments on commit cf5e160

Please sign in to comment.