1

add very minimal demo menu

This commit is contained in:
2022-07-23 15:17:44 +02:00
parent c73e7d3d40
commit 5c9668ef97
7 changed files with 76 additions and 36 deletions

View File

@ -22,8 +22,8 @@ Keyboard kb; // Tastatur
PCSPK pcspk; // PC-Lautsprecher
// BumpAllocator allocator;
// LinkedListAllocator allocator;
TreeAllocator allocator;
LinkedListAllocator allocator;
// TreeAllocator allocator;
Scheduler scheduler;
unsigned int total_mem; // RAM total

View File

@ -36,8 +36,8 @@ extern Keyboard kb; // Tastatur
extern PCSPK pcspk; // PC-Lautsprecher
// extern BumpAllocator allocator;
// extern LinkedListAllocator allocator;
extern TreeAllocator allocator;
extern LinkedListAllocator allocator;
// extern TreeAllocator allocator;
extern Scheduler scheduler;
constexpr bool DEBUG = true;

View File

@ -67,12 +67,6 @@
#define FST_ALLOCABLE_PAGE 0x202000
#define LST_ALLOCABLE_PAGE 0x2FF000
// Externe Funktionen in startup.asm
extern "C" {
void paging_on(unsigned int* p_pdir); // Paging einschalten
void invalidate_tlb_entry(unsigned int* ptr); // Page in TLB invalid.
}
/*****************************************************************************
* Funktion: pg_alloc_page *
*---------------------------------------------------------------------------*

View File

@ -52,6 +52,12 @@
#ifndef __Paging_include__
#define __Paging_include__
// Externe Funktionen in startup.asm
extern "C" {
void paging_on(unsigned int* p_pdir); // Paging einschalten
void invalidate_tlb_entry(unsigned int* ptr); // Page in TLB invalid.
}
// ativiert paging
extern void pg_init();