Adding a skeleton for the memory management code
Moved the PMM away from being object orientated as it is just plain annoying renamed src folder to source Set timeout to 5 seconds in the grub config
This commit is contained in:
		
							
								
								
									
										19
									
								
								source/kernel/Drivers/Serial/serial.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								source/kernel/Drivers/Serial/serial.cpp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
#include "serial.h"
 | 
			
		||||
 | 
			
		||||
Serial Serial::init() {
 | 
			
		||||
    // No clue what to setup yet!
 | 
			
		||||
 | 
			
		||||
    return Serial();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Serial::print(){
 | 
			
		||||
    // Do nothing!
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Serial::Serial(){
 | 
			
		||||
    // Do nothing!
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Serial::~Serial(){
 | 
			
		||||
    // Do nothing!
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								source/kernel/Drivers/Serial/serial.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								source/kernel/Drivers/Serial/serial.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
class Serial {
 | 
			
		||||
 | 
			
		||||
    public: 
 | 
			
		||||
        static Serial init();
 | 
			
		||||
        
 | 
			
		||||
        void print();
 | 
			
		||||
 | 
			
		||||
    private: 
 | 
			
		||||
        const int COM1 = 0x3F8;
 | 
			
		||||
        const int COM2 = 0x2F8;
 | 
			
		||||
        const int COM3 = 0x3E8;
 | 
			
		||||
        const int COM4 = 0x2E8;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        Serial();
 | 
			
		||||
        ~Serial();
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user