This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
367 additions
and
368 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
Binary file not shown.
Binary file not shown.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/kernel/bootSector/diskReadSegments.asm → bootloader/bootSector/diskReadSegments.asm
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,3 +1,3 @@ | ||
; Fichier généré automatiquement. | ||
; La valeur est calculée selon l'espace occupé par le fichier binaire final. | ||
mov al, 33 | ||
mov al, 42 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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,28 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 08/09/2020. | ||
|
||
#include <cstdlib> | ||
#include <cstdio> | ||
|
||
#include "IDT.hpp" | ||
#include "system.hpp" | ||
|
||
extern int main(); | ||
|
||
/** | ||
* Point d'entrée de l'OS | ||
*/ | ||
extern "C" void _start() { | ||
stdio::clearScreen(); | ||
stdio::setCursorPosition(0, 0); | ||
idt::initIDT(); | ||
stdlib::initHeap(0x100000, 0x100000); | ||
|
||
stdio::keyboard::addEventHandler([](stdio::keyboard::KeyEvent e) { | ||
if (e.keyCode == stdio::keyboard::VK_ESC) { | ||
std::system::shutdownAndPrint(); | ||
} | ||
}); | ||
|
||
main(); | ||
} |
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,29 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 26/09/2020. | ||
|
||
#include "system.hpp" | ||
|
||
extern "C" void _exit(); | ||
|
||
namespace std::system { | ||
void shutdown() { | ||
stdio::outw(0x604, 0x2000); // Qemu | ||
stdio::outw(0x4004, 0x3400); // VBox | ||
stdio::outw(0xB004, 0x2000); // Boshs | ||
|
||
_exit(); | ||
} | ||
|
||
void shutdownAndPrint() { | ||
stdio::setCursorPosition(-1, 0); | ||
stdio::printString("Fin du programme..."); | ||
|
||
time::sleep(1); | ||
|
||
shutdown(); | ||
|
||
stdio::setCursorPosition(-1, 0); | ||
stdio::printString("Erreur lors de la sortie de l'emulateur !"); | ||
time::sleep(1); | ||
} | ||
} |
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 @@ | ||
#include "./stddef.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "./stdint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "./stdio.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "./stdlib.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "./stack.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 25/10/2020. | ||
|
||
#ifndef ROMAINOS_STDDEF_H | ||
#define ROMAINOS_STDDEF_H | ||
|
||
#define NULL ((char*) 0) | ||
|
||
namespace stddef { | ||
/** | ||
* Si la variable est un pointeur ou non | ||
* | ||
* @tparam T Type | ||
* | ||
* @return Pointeur ou non | ||
*/ | ||
template<typename T> | ||
bool isPointer(T); | ||
} | ||
|
||
#endif //ROMAINOS_STDDEF_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 25/10/2020. | ||
|
||
#ifndef ROMAINOS_STDIO_H | ||
#define ROMAINOS_STDIO_H | ||
|
||
#include "../stdio/keyboard.hpp" | ||
#include "../stdio/keyboardLayout.hpp" | ||
#include "../stdio/printText.hpp" | ||
#include "../stdio/textColorModes.hpp" | ||
#include "../stdio/rawIO.hpp" | ||
|
||
#endif //ROMAINOS_STDIO_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 25/10/2020. | ||
|
||
#ifndef ROMAINOS_STDLIB_H | ||
#define ROMAINOS_STDLIB_H | ||
|
||
#include "../stdlib/memory.hpp" | ||
#include "../stdlib/memoryMap.hpp" | ||
#include "random.h" | ||
#include "time.h" | ||
|
||
#endif //ROMAINOS_STDLIB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "./string.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
Oops, something went wrong.