-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Toolchain for x86_64, Multiboot 2 * Begin Working on 64 bit boot process * Kernel Boots * Change to MaxOS * Kernel Debug Printing * Fixed Kernel Debug Printing * Prep Merge * Workflow fixes * Add nasm
- Loading branch information
1 parent
e51208c
commit 2452708
Showing
125 changed files
with
1,440 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
set timeout=0 | ||
set default=0 | ||
set timeout=0 | ||
|
||
menuentry "Max OS" { | ||
multiboot /boot/MaxOSk32 | ||
echo "Max OS by Max Tyson || (64 Bit Mode)" | ||
echo "====================================" | ||
echo "Loading Kernel..." | ||
multiboot2 /boot/MaxOSk64 | ||
boot | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <stdint.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
#include <stdint.h> | ||
#include <common/pair.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
#include <stdint.h> | ||
#include <common/vector.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
#include <stdint.h> | ||
#include <common/colour.h> | ||
|
||
namespace maxOS { | ||
namespace MaxOS { | ||
|
||
namespace common { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by 98max on 15/01/2024. | ||
// | ||
|
||
#ifndef MAXOS_KPRINT_H | ||
#define MAXOS_KPRINT_H | ||
|
||
#include <drivers/console/serial.h> | ||
|
||
void _kprintf(const char* format, ...); | ||
|
||
#endif // MAXOS_KPRINT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
#ifndef MAXOS_PAIR_H | ||
#define MAXOS_PAIR_H | ||
|
||
namespace maxOS { | ||
namespace MaxOS { | ||
|
||
namespace common { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <common/vector.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <stdint.h> | ||
|
||
namespace maxOS { | ||
namespace MaxOS { | ||
|
||
class String { | ||
private: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <stdint.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <stdint.h> | ||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace common{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// Created by 98max on 14/01/2024. | ||
// | ||
|
||
#ifndef MAXOS_SERIAL_H | ||
#define MAXOS_SERIAL_H | ||
|
||
#include <stdint.h> | ||
#include <hardwarecommunication/port.h> | ||
#include <drivers/driver.h> | ||
|
||
namespace MaxOS { | ||
|
||
namespace drivers { | ||
|
||
class SerialConsole : public Driver { | ||
|
||
private: | ||
hardwarecommunication::Port8Bit m_data_port; | ||
hardwarecommunication::Port8Bit m_interrupt_enable_port; | ||
hardwarecommunication::Port8Bit m_fifo_control_port; | ||
hardwarecommunication::Port8Bit m_line_control_port; | ||
hardwarecommunication::Port8Bit m_modem_control_port; | ||
hardwarecommunication::Port8Bit m_line_status_port; | ||
|
||
public: | ||
static SerialConsole* s_active_serial_console; | ||
|
||
SerialConsole(); | ||
~SerialConsole(); | ||
|
||
void put_character(char c); | ||
|
||
}; | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
#endif // MAXOS_SERIAL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
#include <stdint.h> | ||
|
||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace drivers{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
#include <hardwarecommunication/port.h> | ||
|
||
|
||
namespace maxOS{ | ||
namespace MaxOS{ | ||
|
||
namespace drivers{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#include <stdint.h> | ||
|
||
namespace maxOS { | ||
namespace MaxOS { | ||
|
||
namespace drivers { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.