1

add serial + eventmanager to globals

This commit is contained in:
2022-07-16 01:02:06 +02:00
parent f41eda0215
commit 694e835142
2 changed files with 11 additions and 4 deletions

View File

@ -17,8 +17,8 @@ VESA vesa; // VESA-Treiber
PIC pic; // Interrupt-Controller
IntDispatcher intdis; // Unterbrechungsverteilung
PIT pit(10000);
PCSPK pcspk; // PC-Lautsprecher
PIT pit(10000); // 10000
PCSPK pcspk; // PC-Lautsprecher
Keyboard kb; // Tastatur
KeyEventManager kevman;
@ -26,7 +26,10 @@ KeyEventManager kevman;
// BumpAllocator allocator;
LinkedListAllocator allocator;
// TreeAllocator allocator;
Scheduler scheduler;
SerialOut serial;
unsigned int total_mem; // RAM total
unsigned long systime = 0;

View File

@ -23,7 +23,8 @@
#include "kernel/interrupts/IntDispatcher.h"
#include "kernel/interrupts/PIC.h"
#include "kernel/threads/Scheduler.h"
#include "user/KeyEventManager.h"
#include "user/devices/SerialOut.h"
#include "user/event/KeyEventManager.h"
extern CPU cpu; // CPU-spezifische Funktionen
extern CGA_Stream kout; // Ausgabe-Strom fuer Kernel
@ -42,9 +43,12 @@ extern KeyEventManager kevman;
// extern BumpAllocator allocator;
extern LinkedListAllocator allocator;
// extern TreeAllocator allocator;
extern Scheduler scheduler;
constexpr bool DEBUG = true;
extern SerialOut serial;
constexpr bool DEBUG = false;
extern unsigned int total_mem; // RAM total
extern unsigned long systime; // wird all 10ms hochgezaehlt