KERNEL: Implementing VMM & cleaning up
Folders now are alll lower case Started working on the implementation of the Virtual memory manager. Implemented allocate and free page funtionality for as far as I can atm. Implemented the
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